Skip to content

Run Modulo Tests #676

Open
Open
@skiz

Description

@skiz

🤔 What's the problem you're trying to solve?

I want to run an indeterminate number of tests in parallel across multiple test runners without tagging individual tests.

✨ What's your proposed solution?

Add a modulo and target option that deterministically selects every Nth scenario to run.

This should also work the same across all instances using the same seed.

I would pass this in as an environment variable to the configuration options.

r1$ SEED=1234 MOD=3 INT=1 make test.... (scenarios 1,4,7,10)
r2$ SEED=1234 MOD=3 INT=2 make test... (scenarios 2,5,8,11)
r3$ SEED=1234 MOD=3 INT=3 make test... (scenarios 3,6,9,12)

⛏ Have you considered any alternatives or workarounds?

I can do this with tags, but forgetting or typo on a tag will ignore the test completely.

📚 Any additional context?

No response

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