Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run hydra-plutus tests without repl #1449

Closed
ch1bo opened this issue May 23, 2024 · 1 comment
Closed

Can't run hydra-plutus tests without repl #1449

ch1bo opened this issue May 23, 2024 · 1 comment
Labels
bug 🐛 Something isn't working

Comments

@ch1bo
Copy link
Collaborator

ch1bo commented May 23, 2024

This is more a developer experience problem than a bug. After changing the scripts in hydra-plutus, I want to see the golden tests failing and then recompute the golden files we keep in the repo.

Context & versions

13e596f

Steps to reproduce

  • Try cabal test hydra-plutus because I know it's golden tests
  • Try cabal run hydra-plutus because I remember tests are now exes
  • Fix my command to cabal run hydra-plutus:exe:tests because cabal tells me to

Actual behavior

  • Tests do run, but produce a new scripts/ dir wherever I happen to be and do not use what was checked in reliably (it tricks me into thinking everything is fine, but CI would fail)

Expected behavior

  • Tests to run against the scripts that are checked in.
  • A single command to do that with cabal, i.e. cabal test hydra-plutus

Workaround

  • Use cabal repl hydra-plutus:exe:tests and then run :main in it
@ch1bo
Copy link
Collaborator Author

ch1bo commented Jun 18, 2024

This got fixed by reverting the hydra-plutus golden tests again to a test suite in #1459 and cabal test would always refer to the right golden files.

@ch1bo ch1bo closed this as completed Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant