Closed aleeusgr closed 1 year ago
See: https://github.com/SIDANWhatever/plutus-cborhex-automation/issues/27
what Spock does can be abstracted as a function. Ideally, it does not matter framewhat work you are using, a unit test is a request to the endpoint that contains correct data. The output of the function is compared to the set of expected outputs, it could be a file containing a json file.
todo:
A test with IO; File -> Bool https://github.com/aleeusgr/aoc/pull/2
What it tests for? How does it break? ghc, file is missing, ...
How to write a testing suite for this application?
https://github.com/input-output-hk/Developer-Experience-working-group/discussions/41