Skip to content

Running tests with color disables reload after file change #189

@rampion

Description

@rampion

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    linearCreated by Linear-GitHub Sync

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions