minitest-line icon indicating copy to clipboard operation
minitest-line copied to clipboard

Possible to run multiple tests at once?

Open maxp-edcast opened this issue 7 years ago • 5 comments

Say there are two tests, one at line 20 and one at line 40. Is there a way to run both of these with a single command?

maxp-edcast avatar Dec 06 '17 19:12 maxp-edcast

no, but please add a PR for it, should be a neat little feature ... I think rspec/cucumber support that ... use their syntax as inspiration

grosser avatar Dec 06 '17 19:12 grosser

I wouldn't be opposed to adding it, but I don't understand see the workflow. If I have multiple tests I want to run I'd rather create a filter. My use case for minitest-line is more "quickly glance at the line number I'm current on" in order to run the current test.

judofyr avatar Dec 08 '17 07:12 judofyr

@judofyr I'm not aware of this filter capability, can you give an example? Also what do you mean by quickly glance at the line number? Like when a test fails you can quickly see which one it is and try running it again?

maxp-edcast avatar Dec 08 '17 21:12 maxp-edcast

Filtering by test name:

ruby test_foo.rb -n /regexp_that_matches_test_name/

My use case for minitest-line was mainly while I was writing a test I wanted a quick way to run it. As I write/tweak a test I just need the filename and the approximate line number and I can quickly run it.

judofyr avatar Dec 09 '17 14:12 judofyr

I don't understand see the workflow

When you look at tests run report and decide to rerun a specific several of them.

Nakilon avatar Apr 15 '24 22:04 Nakilon