Skip to content

Options that change how tests are run should not cause a rebuild #6267

Closed
@erikd

Description

@erikd

Describe the bug
Building my project and the running the tests, causes the test command to rebuild everything.

I like to see the output of my test suites so I use --test-show-details=direct and I have multiple test suites and to avoid them all running at the same time (and having their output all come out at once) I use -j1.

To Reproduce
Steps to reproduce the behavior:
Using cabal version 3.0:

$ cabal build all
$ cabal test all -j1 --test-show-details=direct

If I run the same two commands again, the build command will rebuild everything and then the test command will again rebuild everything.

Expected behavior
The test command should only build the stuff that has not been built.

System informataion

  • Linuix
  • cabal 3.0
  • ghc 8.6.5

Related: #6129 #6069

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions