Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Offer fail-fast functionality #39

Open
@vemv

Description

@vemv

Hi there!

I found that it's easy to build "fail-fast" functionality on top of circleci.test.

The trick is changing this for:

#(assoc (apply merge-with + (for [n nses]
(test-ns n selector config)))

..with a reduce that observes the return value of each iteration. If at any given iteration the :fail or :error count is > 0, then one can shortcircuit the loop with (reduced).

Would love to PR this, but I currently can't... ⚖️

Thanks - V

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