Run The Test At A Specific Line Number
You can tell mix test to only run tests that appear in a specific file by naming the file:
$ mix test test/module/file_test.exsYou can even point it to a specific line number in that file like so:
$ mix test test/module/file_test.exs:45Behind the scenes, mix test is using tags to build a list of exclusions and inclusions that result in only the test at line 45 running. Here is an equivalent of the above command:
$ mix test test/module/file_test.exs --exclude test --include line:45This will exclude every test. It will then re-include the test that corresponds to having a tag line:45.
Last updated
Was this helpful?