Skip to content

Prevent --file-watch from watching test suites #3483

Closed
@JoeMShanahan

Description

@JoeMShanahan

How appropriate would it be to allow a new argument which prevents stack from triggering a rebuild when a test suite changes?

During development of a web app using yesod, we're in the situation where I'm running the server with yesod devel (which uses stack ... --file-watch underneath).

Our selenium test suite is attached to the server devel is running. I'm altering some selenium tests which I have loaded with GHCi. When I change the selenium tests, stack notices, which signals to devel that a rebuild is required even though it's not! This really just slows down development.

I propose something like stack build --file-watch --no-watch-tests . What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions