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

Debug on fail #476

Open
gampleman opened this issue Nov 28, 2020 · 0 comments
Open

Debug on fail #476

gampleman opened this issue Nov 28, 2020 · 0 comments

Comments

@gampleman
Copy link
Contributor

A pretty neat feature would be a new flag, that would run the test as usual. However, when there would be a failure, it would:

  1. shrink it as usual
  2. pause execution
  3. print the failure message
  4. open an elm repl
  5. reexecute the test in the repl (with the shrunk data)

This would drop you nicely into the repl with everything going on in the test in scope. This comes from a workflow, where one would write a complex fuzz test, run it for say 10000 iterations. This can find some fairly obscure bugs, so one would like to be able to inspect the intermediate data structures, and even run some experiments in the console, however this can be hard to achieve with just the test output and time consuming to set up.

A nice further refinement would be that one could enter this mode after a run in watch mode by pressing say the D key, which would be a nice way to combine this with watch mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant