Skip to content

Introduce a way to "print out" a ExUnit test plan #14389

Closed as duplicate of#14393
Closed as duplicate of#14393
@whatyouhide

Description

@whatyouhide

I've had multiple occasions recently where I needed to know which tests ExUnit would run given some configuration. For example, if I run

MIX_TEST_PARTITION=5 mix test --partitions 6

or

mix test --only flaky

There's a "trick" to use which is to add --trace and go through the list of tests that run, but that's not very tool friendly.

I’m thinking we might introduce an API for printing out a test plan. It could be just that, without running the tests:

mix test.plan [flags]

or just printing out the plan before starting the suite:

mix test --print-plan [flags]

Thoughts?

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