Summary
stack test doesn't seem to rebuild test correctly.
Steps to reproduce
I've created a minimal repository to demonstrate this. It can be found at https://github.com/joncol/Broken.
The test as it is, is broken by design.
- Run command
stack build.
- Run command
stack test. It should fail.
- To fix the failing test, change line 19 of
src/Broken.hs to: mempty = BoolConj True
- Run command
stack test.
Expected
The test should work.
Actual
No change, the test still fails. But when running stack clean followed by stack test, it succeeds.
Stack version
$ stack --version
Version 1.2.0 x86_64 hpack-0.14.0
Method of installation
Official binary, downloaded from stackage.org or fpcomplete's package repository
Summary
stack testdoesn't seem to rebuild test correctly.Steps to reproduce
I've created a minimal repository to demonstrate this. It can be found at https://github.com/joncol/Broken.
The test as it is, is broken by design.
stack build.stack test. It should fail.src/Broken.hsto:mempty = BoolConj Truestack test.Expected
The test should work.
Actual
No change, the test still fails. But when running
stack cleanfollowed bystack test, it succeeds.Stack version
Method of installation
Official binary, downloaded from stackage.org or fpcomplete's package repository