add test-allcommand to test-zeekoe.py to run all scenario tests
closes #304
A couple of things to note:
This only tests the happy paths (including dispute). It doesn't test for cases where zeekoe should fail, e.g. making a payment with insufficient funds.
The tests don't verify that the customer or merchant daemons respond appropriately. What the test does check (using Pytezos) is that the operations it broadcasts are valid, and that the operations reach min_confirmations before continuing. What is missing from the test is making sure that zeekoe responds appropriately, e.g. that custClaim gets broadcasted after custClose, or that the merchant calls merchDispute on a revoked state. Currently you'd have to manually check on chain.
I'm thinking if this PR looks good then the above can be filed as issues.
add
test-all
command to test-zeekoe.py to run all scenario tests closes #304A couple of things to note:
min_confirmations
before continuing. What is missing from the test is making sure that zeekoe responds appropriately, e.g. thatcustClaim
gets broadcasted aftercustClose
, or that the merchant callsmerchDispute
on a revoked state. Currently you'd have to manually check on chain.I'm thinking if this PR looks good then the above can be filed as issues.