Is there a command-line invocation I can used in conjunction with mix
that will output all test names without running the tests?
How can I list all tests using `mix test`
Asked Answered
This will still run the tests:
mix test --trace
Found in the mix help test
page
EDIT: Didn't see the bit saying 'without running the tests', but I thought it might be helpful
This is also useful to see which tests are running if you've excluded a bunch of them, e.g. if you use tags then run
mix test --only my_tag_name --trace
to see which ones have been excluded and which have been run. –
Subordinate © 2022 - 2024 — McMap. All rights reserved.
grep -h "test " ./test/**/*.exs | sed -e 's/do$//g'
– Gunpowdermix test
by typingmix help test
– Placerrun/1
function. – Caulk