marlowe-ts-sdk icon indicating copy to clipboard operation
marlowe-ts-sdk copied to clipboard

Create an experiment branch to assess using Cucumber for integration/unit test

Open hrajchert opened this issue 1 year ago • 1 comments

  • Create an exeperiment/cucumber branch
  • Install https://cucumber.io/ and try to create some basic resolvers

initial Idea for resolvers in the integration test space:

Given a swap contract between "Alice" and "Bob" for "20 tokenA" for "40 tokenB"
When I submit contract I get TxId
When I wait for confirmation
Then the tx is confirmed

hrajchert avatar Dec 22 '23 14:12 hrajchert

Progress

  • [x] Start a discussion
  • [x] Install cucumber
    • You can install locally through npm. npm install --save-dev @cucumber/cucumber
    • It is also possible to install through nix nix-shell -p cucumber
  • [ ] Make unknown unknowns known
    • [ ] It has a CLI, can you avoid CucumberStudio?
    • [ ] Seems like cucumber wants a specific folder structure. Can this be configured?

bjornkihlberg avatar Jan 10 '24 11:01 bjornkihlberg