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

Running tests with color disables reload after file change #189

Closed
rampion opened this issue Dec 22, 2023 · 2 comments
Closed

Running tests with color disables reload after file change #189

rampion opened this issue Dec 22, 2023 · 2 comments
Labels
linear Created by Linear-GitHub Sync

Comments

@rampion
Copy link

rampion commented Dec 22, 2023

When I run tests via ghciwatch with this command, it will reload and rerun tests whenever I edit a file in the test/ directory

ghciwatch \
  --command 'cabal repl test' \
  --after-startup-ghci 'import System.Environment (withArgs)' \
  --test-ghci 'withArgs ["--match=XXX"] main' \
  --watch test

If I add a --color flag to the test args, the tests run with colors once, but ghciwatch does not appear to reload or rerun tests when a modules in the test/ directory are edited.

ghciwatch \
  --command 'cabal repl test' \
  --after-startup-ghci 'import System.Environment (withArgs)' \
  --test-ghci 'withArgs ["--match=XXX", "--color"] main' \
  --watch test
@github-actions github-actions bot added the linear Created by Linear-GitHub Sync label Dec 22, 2023
@9999years
Copy link
Member

Reproduction here: https://github.com/rampion/ghciwatch-bug-demo

@9999years
Copy link
Member

Fixed by #345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

2 participants