gma / tconsole

Testing console for Rails. Helps out with test performance and also makes it easier to run specific tests
177 stars 18 forks source link

Tconsole should give information about typos #50

Closed krzyzak closed 12 years ago

krzyzak commented 12 years ago

Hi. I accidentaly made a typo, and surprisingly, there was no error in tconsole.

tconsole> something_that_dont_exists
Running tests...

Finished tests in 0.020467s, 12019.3482 tests/s, 0.0000 assertions/s.

246 tests, 0 assertions, 0 passes, 0 failures, 0 errors, 0 skips
Coverage report generated for RSpec to /Users/krzyzak/projects/my_project/coverage. 965 / 1854 LOC (52.05%) covered.

Test time (including load): 3.071425s

IMHO, it should be some notification, that I'm trying to run something, that doesn't exists.

nalanj commented 12 years ago

@krzyzak I'll take a look - we can't actually detect if you made a mistake or not until we've run and nothing was tested, but I could at least put a message in saying that your pattern didn't match anything after the fact.

gma commented 12 years ago

That'd be awesome; when things aren't behaving as you expect it'd be nice to know whether your expectations are just wrong, or whether something is actually wrong.

nalanj commented 12 years ago

This will be in the next prerelease.

krzyzak commented 12 years ago

Cool, can't wait for next release!