Skip to content

stack test doesn't rebuild test correctly #2724

@joncol

Description

@joncol

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.

  1. Run command stack build.
  2. Run command stack test. It should fail.
  3. To fix the failing test, change line 19 of src/Broken.hs to: mempty = BoolConj True
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions