Skip to content
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

EZ Integration Tests #233

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions features/integration/ez.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Feature: Easy Integration Testing
Background:
* a kmd client
* an algod v2 client
* suggested transaction parameters from the algod v2 client
* I create a new transient account and fund it with 100000000 microalgos.
* I make a transaction signer for the transient account.

@ez.disassemble
Scenario:
Given an ez request/response array fixture "disassemble.json" to save in "disassemble"'s context.
* Parse and save as ordered each "disassemble" request's route, path, verb, content-type, optional params and post-data with encoding info.
Then Sanity check that "disassemble"'s request data matches its verbs.
* Decode "disassemble"'s data as needed in preparation for making requests.
* Parse and save as ordered each "disassemble" response body in the given format.
* Infer each SDK method from "disassemble"'s requests and run it live each saving its response.
tzaffi marked this conversation as resolved.
Show resolved Hide resolved
Then Assert that each live "disassemble" response is essentially identical to the parsed fixture response.