-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Use Sandbox for Testing #363
Conversation
harness: | ||
./test-harness.sh | ||
|
||
docker-javasdk-build: | ||
# Build SDK testing environment | ||
docker build -t java-sdk-testing . | ||
|
||
docker-javasdk-run: | ||
# Launch SDK testing | ||
docker run -it --network host java-sdk-testing:latest | ||
|
||
docker-test: | ||
./run_integration_tests.sh | ||
docker-test: harness docker-javasdk-build docker-javasdk-run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaking up make docker-test
into:
- pull down the
harness
- build the javasdk docker
- run the javasdk docker (which runs
make unit
andmake integration
)
UNIT_TAGS := "$(subst :, or ,$(shell awk '{print $2}' src/test/unit.tags | paste -s -d: -))" | ||
INTEGRATION_TAGS := "$(subst :, or ,$(shell awk '{print $2}' src/test/integration.tags | paste -s -d: -))" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cucumber tags now reside in:
src/test/integration.tags
src/test/unit.tags
mvn test -Dtest=com.algorand.algosdk.integration.RunCucumberIntegrationTest -Dcucumber.filter.tags=$(INTEGRATION_TAGS) | ||
|
||
display-all-java-steps: | ||
find src/test/java/com/algorand/algosdk -name "*.java" | xargs grep "io.cucumber.java.en" 2>/dev/null | grep -v Binary | cut -d: -f1 | sort | uniq | xargs grep -E "@(Given|Then|When)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command that generates input for Unused Steps Analysis script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval assumes SDK_TESTING_BRANCH
reset to master
prior to merge.
* Ignore copied over txt test resource files (#342) * Github-Actions: Adding pr title and label checks (#339) * Enhancement: Add UNKNOWN enum type to HTTP client enums. (#351) * AVM: Consolidate TEAL and AVM versions (#348) * Testing: Modify cucumber steps to use dev mode network (#350) * DevTools: adding source map decoder (#352) * adding source map decoder * bump to 1.17.0 * Enhancement: Use Sandbox for Testing (#363) * Bugfix: Pass verbosity to the harness and sandbox (#371) * Enhancement: Deprecating use of langspec (#367) Co-authored-by: Michael Diamant <[email protected]> * StateProofs: Add State Proof support. (#360) * Regenerate client. * Implement cucumber response tests. * Implement path tests, update Makefile, update README. * Revert * Add state proof fields to Transaction. * Update README.md * Update src/main/java/com/algorand/algosdk/transaction/Transaction.java * publish results. * Add transaction-root-256 * dummy commit to avoid check pr category * dummy commit to kill previous dummy commit Co-authored-by: Michael Diamant <[email protected]> Co-authored-by: Jack <[email protected]> Co-authored-by: Will Winder <[email protected]> Co-authored-by: Ben Guidarelli <[email protected]> Co-authored-by: Barbara Poon <[email protected]> Co-authored-by: Zeph Grunschlag <[email protected]>
Blocked by algorand/algorand-sdk-testing#220
...which explains most of the removed steps.
Additional Unused Steps via Unused Steps Analysis Script
according to this spreadsheet
the transaction should still be the same
I get transactions by address only
I get transactions by address and date
@Given("indexer client {int} at {string} port {int} with token {string}")
@Given("key registration transaction parameters {int} {int} {int} {string} {string} {string} {int} {int} {int} {string} {string}")
@When("I create the payment transaction")
@When("I create the key registration transaction")
@Then("I can get the transaction by ID")
@When("I read a transaction {string} from file {string}")
@When("I write the transaction to file")
@Then("I do my part")
@When("I get recent transactions, limited by {int} transactions")