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

Feature Request // File watcher to auto-run tests through TUI #98

Open
benjaminweb opened this issue Oct 26, 2024 · 1 comment
Open

Comments

@benjaminweb
Copy link

No description provided.

@thomasjm
Copy link
Collaborator

This would be very cool, but I think it's not in the cards without some major architectural changes. Currently the TUI is built as part of your tests, so a change in your tests necessitates rebuilding the TUI.

To make this happen properly, I imagine we would need the TUI to run as a separate process, not dependent on the test files, and for it to know how to build/rebuild your tests, and for it to communicate with the actual test process to show/control the test tree. These would be some major changes.

However, I think it might be interesting to try getting the workflow you want with a tool like watchexec.

I was curious and I actually got it to work like this:

# In the sandwich repo
watchexec --wrap-process=none --exts hs -r stack run demo-basic -- --tui

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

2 participants