jejacks0n / teaspoon

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

Entire suite of tests should fail if syntax error is present #219

Closed paultannenbaum closed 10 years ago

paultannenbaum commented 10 years ago

I noticed that if you introduce a syntax error into a spec file then that entire file will not have its tests run by teaspoon. It makes sense to skip the file if it's not valid javascript and can't be run, but it should probably give some kind of feedback that this is happening. Failing those tests makes the most sense to me. Is this something you guys have thought about?

jejacks0n commented 10 years ago

So do your specs continue to run and simply fail?

jejacks0n commented 10 years ago

Technically speaking this isn't possible. Javascript can continue execution even in the case of an exception, so it's not possible as far as I'm aware.