minitest --name regexp troubles

S

Suraj Kurapati

Hello,

I'm using Ruby 1.9.2p136 with Minitest 2.0.2 where the --name option
is accepting a partial test name regexp (/foo/) but not a complete
test name regexp (/foo bar baz/), as demonstrated below. Any ideas?

Thanks for your consideration.

#-----------------------------------------------------------------
# ruby foo.rb -n '/foo/'
#-----------------------------------------------------------------
Loaded suite foo
Started
["foo", "bar", "baz"]
["foo", "bar", "baz"]
 
S

Suraj Kurapati

Suraj Kurapati wrote in post #974330:
I'm using Ruby 1.9.2p136 with Minitest 2.0.2 where the --name option
is accepting a partial test name regexp (/foo/) but not a complete
test name regexp (/foo bar baz/), as demonstrated below. Any ideas?

You have to pass a valid Ruby method name: "/foo_bar_baz/" works.
 
E

Eric Hodel

Suraj Kurapati wrote in post #974330:
=20
You have to pass a valid Ruby method name: "/foo_bar_baz/" works.

You have to pass a regular expression that matches a test name you want =
to run. /foo.bar.baz/ will also work.=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top