Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake spec:javascripts doesn't find any specs #75

Closed
clarkcutlerdev opened this issue Feb 18, 2013 · 4 comments
Closed

rake spec:javascripts doesn't find any specs #75

clarkcutlerdev opened this issue Feb 18, 2013 · 4 comments

Comments

@clarkcutlerdev
Copy link

/jasmine shows 7 specs (the 2 examples, and 5 that I wrote). But rake spec:javascripts says 0 specs:

WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
13:59:15 - INFO - Guard::Jasmine starts thin spec server on port 49435 in test environment (coverage off).
13:59:19 - INFO - Waiting for Jasmine test runner at http://localhost:49435/jasmine
13:59:19 - INFO - Run all Jasmine suites
13:59:19 - INFO - Run Jasmine suite at http://localhost:49435/jasmine
13:59:21 - INFO - Finished in 0.001 seconds
13:59:21 - INFO - 0 specs, 0 failures
13:59:21 - INFO - Done.
13:59:21 - INFO - Guard::Jasmine stops server.
@christiannelson
Copy link
Contributor

I think I'll need more information, as it works as expected for me:

% rake spec:javascripts
15:33:43 - INFO - Guard::Jasmine starts thin spec server on port 62978 in test environment (coverage off).
15:33:46 - INFO - Waiting for Jasmine test runner at http://localhost:62978/jasmine
15:33:46 - INFO - Run all Jasmine suites
15:33:46 - INFO - Run Jasmine suite at http://localhost:62978/jasmine
15:33:48 - INFO - Finished in 0.008 seconds
15:33:48 - INFO - Foo
15:33:48 - INFO -   ✔ it is not bar
15:33:48 - INFO - Bar
15:33:48 - INFO -   ✔ it is not foo
15:33:48 - INFO - 2 specs, 0 failures
15:33:48 - INFO - Done.
15:33:48 - INFO - Guard::Jasmine stops server.

@clarkcutlerdev
Copy link
Author

Turns out it was a syntax error in the JavaScript I was testing. If possible though, it would be cool to output some message for CoffeeScript compilation failures instead of 0 specs, 0 failures.

@christiannelson
Copy link
Contributor

This bit Alex the other day. I don't think there's an easy fix in raygun... I think guard-jasmine would have to bubble this up. Submitted an issue: guard/guard-jasmine#112

@christiannelson
Copy link
Contributor

Looks like guard-jasmine v1.15.1 fixes this project. Now, when there's a syntax error, we'll get output like this:

ERROR - An error occurred: Error: ExecJS::RuntimeError: SyntaxError: unexpected INDENT
> [#]   (in /Users/christian/Development/Projects/carbon-five/raygun/rails_32/spec/javascripts/example_spec.js.coffee)
> [#]   http://localhost:50840/assets/spec.js:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants