randycoulman / mix_test_interactive

Interactive watch mode for Elixir's mix test. https://hexdocs.pm/mix_test_interactive/
MIT License
73 stars 12 forks source link

Config-less operation #64

Open randycoulman opened 1 year ago

randycoulman commented 1 year ago

Some of mix_test_interactive's behavior can be modified using application configuration. For example, the clear, exclude, and task options can only be configured in app config.

Projects generated with mix new no longer include a config by default (for good reasons), which makes it harder to customize mix_test_interactive.

Ideally, there would be a way to customize mix_task_interactive without using application configuration. The most obvious answer to this would be to also support command-line arguments for configuring these settings.

In order to do this, there are some problems to solve:

jfpedroza commented 1 year ago

The exclude option can simply be repeatable, so if you need to pass multiple regexes, do you --exlude 'db_migration\/.*' --exclude 'useless_.*\.exs'.

The command option could be a string that is split by spaces. The problem is if there is an argument that has spaces and needs quotes.