Skip to content

stack test should continue when a test suite fails #478

Closed

Description

@mboes

Rationale:

  • without this users have to manually specify test targets in order to skip the package with the offending test suite. It gets tiring.
  • sometimes test suites are badly written, in which case a non-deterministic failure appears in some package. At this point it's not so helpful for stack to refuse to process the dependent test suites, when in previous invocations it would have.
  • it's consistent with the behaviour of most test frameworks, which run all tests in a test suite regardless of failures.

Variations:

  • don't make this the default, but provide-k and --keep-going flags, à la make.
  • don't process dependent packages, but do continue processing test suites for packages that don't depend on the package whose tests don't pass. Then -k would mean blindly test everything no matter what (provided it builds).

Activity

  1. self-assigned this
    on Jul 2, 2015
  2. added this to the milestone on Jul 2, 2015
  3. added a commit that references this issue on Jul 3, 2015
  4. snoyberg commented on Jul 3, 2015

    @snoyberg
    Contributor

    @mboes I've implemented --keep-going with default behavior as described for build, test, and bench. Confirmed?

  5. assigned and unassigned on Jul 3, 2015
  6. mboes commented on Jul 3, 2015

    @mboes
    ContributorAuthor

    Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions