jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Verify that tests are run (when syntax error) #563

Closed joshm1204 closed 5 years ago

joshm1204 commented 5 years ago

I noticed that if I make a syntax error in my teaspoon tests, a whole section of tests won't run. Unless I am manually counting all the test, I don't know the total number that should be run. So my fear is that I could make a mistake and a whole section of my tests never execute.

Is there a way to prevent this? How can a get teaspoon-jasmine to error if it can not run a series of tests?

jejacks0n commented 5 years ago

This goes way back if I recall -- it's kind of an interesting thing because the error happens before teaspoon can do anything about it. If you think about it, a syntax error would be handled at parse time, which teaspoon can't hook into at any level, because it too is being parsed and not executed at this point.

jejacks0n commented 5 years ago

if you're doing any sort of transpiling, this can be captured by the system doing that though.