arthurnn / minitest-emacs

A minitest mode for emacs
49 stars 26 forks source link

verify single doesn't work with `it "tests things"` syntax #48

Closed gcentauri closed 4 years ago

gcentauri commented 4 years ago

I can't quite tell why this is happening. If I try

it "tests things"
  true
end

the test name looks correct -n/tests_things/, but the test runner doesn't pick it up. however, removing the space so its "teststhings" did work. This thread seems to have some helpful info https://stackoverflow.com/questions/5285711/is-it-possible-to-run-a-single-test-in-minitest

gcentauri commented 4 years ago

Turns out the "it" syntax regular expression passed on the command line needs to preserve the spaces in the name. Emacs seems to automatically escape them with comint-mode or something.