minitest / minitest-focus

72 stars 9 forks source link

Doesn't run any tests #5

Closed garrettlancaster closed 9 years ago

garrettlancaster commented 10 years ago

I am using the describe/it format, minitest 4.7.5 and ruby 1.9.3. When I add

focus
it "should..." do
...
end

I get 0 tests, 0 passed, 0 failures, 0 errors, 0 skips, 0 assertions

Not sure if it's relevant, but I am inside a second level describe and am using an after block.

djmaze commented 10 years ago

Same problem here. Does not run any test or it blocks if anything has been focused.

Same minitest version, but using JRuby 1.7.6.

CyborgMaster commented 9 years ago

I can confirm that this happens anytime the test is contained inside a describe block. I'm going to try and see if i can figure out what is causing this.

CyborgMaster commented 9 years ago

Ok, so I was mistaken. I looks like nested describe blocks are working fine for me. My problem was parenthesis in the name, which is the issue describe in #3.

I recommend this issue be closed.

zenspider commented 9 years ago

Closing