dapp-tests: use bash_unit as a test runner #797
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Makes use of
bash_unit
as a unit test runner for the dapp_tests. This makes working with these tests a little more ergonomic and means we can:If you want to hack on the tests, you can
cd
intosrc/dapp-tests
and entering the nix-shell. From there you can runbash_unit integeration/tests.sh
. To run a subset of the tests, you can runbash_unit -p <REGEX> integration/tests.sh
.I also refactored a little bit, and now the tests are organised so that there is a shared instance of
dapp testnet
running in the background for every test, as well as a helper functionfresh_account
that generates and funds a new address.Checklist