cabal test --write-ghc-environment-files=always
generates GHC environment files _after_ running tests
#7889
Labels
cabal test --write-ghc-environment-files=always
generates GHC environment files _after_ running tests
#7889
Describe the bug
When running
cabal test
with--write-ghc-environment-files=always
, a GHC environment file is only written after finishing the tests. Tests relying on the presence of these files (e.g., consumers of the GHC API or tests invoking GHCi) therefore fail to run.To Reproduce
This project has a test-suite that:
Which yields:
Interestingly,
cabal run
does this "correctly":Expected behavior
Like
run
I expect environment files to be written before a test runs. This is important for consumers of the GHC API of GHCi, such asdoctest-parallel
or the Clash project.System information
The text was updated successfully, but these errors were encountered: