Skip to content

'stack test --file-watch' recompiles the world #671

Closed
@jwaldmann

Description

@jwaldmann

I am in containers (the top directory of a checkout) with

stack --resolver=lts test containers-tests:intset-properties --file-watch

Whenever I do a one-line change in containers/src/Data/IntSet/Internal.hs, stack will recompile lots (all?) libraries (regex-posix, binary, QuickCheck, text, xml, ChasingBottoms, test-framework, ..)

(possibly related to #630)

Strange thing is that no libraries are recompiled with "bench" instead of "test"

stack --resolver=lts bench containers-tests:intset-benchmarks  --file-watch --ba "-q instance"

NB: And the worrisome thing is that the tests don't detect that my one-line change is wrong (using only a small number of examples?), and benchmarks happily print their timings all green (while they could check semantics - I know the size of the resulting DFA)

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