Skip to content

Add support for --repeat to mix test #11016

@azizk

Description

@azizk

Environment

  • Elixir & Erlang/OTP versions (elixir --version): Elixir 1.12.0 (compiled with Erlang/OTP 24)
  • Operating system: Linux

Current behavior

Mix doesn't support a --repeat option, which makes repeating the previously executed tests difficult or inconvenient.

Expected behavior

I'm missing such an option because:

  • in an editor it's pretty simple to bind a shortcut to mix test --repeat which aids in TDD
  • in the CLI it's practical to have mix repeat the tests if all succeeded after a mix test --failed
  • likewise after a mix test --stale or any other similar command

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