sidan-lab / plutus-cborhex-automation

A Haskell package for creating RESTful API endpoints for dynamic parameterized Cardano Plutus script.
15 stars 3 forks source link

write a test #13

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago

GitHub CI is set up to run cabal test all upon commit. Therefore for CI to work there should be a test.

aleeusgr commented 1 year ago

https://hackage.haskell.org/package/tasty https://devtut.github.io/haskell/testing-with-tasty.html

aleeusgr commented 1 year ago

https://github.com/kazu-yamamoto/unit-test-example/blob/master/markdown/en/tutorial.md

aleeusgr commented 1 year ago

Nix GitHub CI integration

aleeusgr commented 1 year ago

awesome, a check runs on each push or pull request to main; this with proper test will allow quickly understanding if a change breaks the code.

cabal build --enable-tests --enable-benchmarks all FAIL;

aleeusgr commented 1 year ago

https://github.com/SIDANWhatever/plutus-cborhex-automation/pull/14