Failing test results in an error message from phantomjs
See original GitHub issueIf all my specs pass then I don’t get an error. If I have a failure then I get this error. Any thoughts? Only thing I could think of is perhaps on line 28 of the jasmine-rails_tasks.rake file phantomjs is upset about the missing spec_filter?
Rails 3.2.14 Ruby 2.0.0-p247 OS X 10.8.4 PhantomJS 1.9.0.
Thanks! Jon
± RAILS_ENV=test bundle exec rake spec:javascript ruby-2.0.0-p247@bolstr
$ phantomjs "/Users/jon/.rvm/gems/ruby-2.0.0-p247@bolstr/gems/jasmine-rails-0.4.5/lib/tasks/runner.js" "file:///Users/jon/Sites/rails/bolstr/bolstr/spec/tmp/runner.html?spec="
Running: file:///Users/jon/Sites/rails/bolstr/bolstr/spec/tmp/runner.html?spec=
Starting...
Foo : does something else
Expected 5 to be 3.
Finished
-----------------
2 specs, 1 failure in 0.005s.
ConsoleReporter finished
rake aborted!
Error executing command: phantomjs "/Users/jon/.rvm/gems/ruby-2.0.0-p247@bolstr/gems/jasmine-rails-0.4.5/lib/tasks/runner.js" "file:///Users/jon/Sites/rails/bolstr/bolstr/spec/tmp/runner.html?spec="
/Users/jon/.rvm/gems/ruby-2.0.0-p247@bolstr/gems/jasmine-rails-0.4.5/lib/tasks/jasmine-rails_tasks.rake:5:in `run_cmd'
/Users/jon/.rvm/gems/ruby-2.0.0-p247@bolstr/gems/jasmine-rails-0.4.5/lib/tasks/jasmine-rails_tasks.rake:28:in `block (2 levels) in <top (required)>'
/Users/jon/.rvm/gems/ruby-2.0.0-p247@bolstr/bin/ruby_noexec_wrapper:14:in `eval'
/Users/jon/.rvm/gems/ruby-2.0.0-p247@bolstr/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => spec:javascript
(See full trace by running task with --trace)
Issue Analytics
- State:
- Created 10 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
PhantomJS exits after syntax error when running unit tests
I usually use this code to warn about errors and resume the run (phantomjs) phantom.onError = function(msg, trace) { var msgStack = ['PHANTOM...
Read more >Introduction: Troubleshooting - Wallaby.js
Ensure tests are passing outside of Wallaby · Diagnostics Report · More debug information · Configuration issue · Try resetting your testing framework...
Read more >Replacing PhantomJS and CasperJS with JSDOM and Chai ...
Better logs and errors We wanted to make the test failure messages more clear and reduce the logspam for passing tests (6 lines...
Read more >Moving from PhantomJS to Chrome
We used PhantomJS for automated UI testing for some time. ... was that PhantomJS did not mention the assertion failure in the below...
Read more >Visual Testing using PhantomCSS in JavaScript
echo( msg ); } ); casper.on( 'error', function ( err ) { this.die( "PhantomJS has errored: " + err ); } ); casper.on( ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Wouldn’t this prevent failing tests to break a build in a CI environment? I investigated preventing this error output before but seem to remember that the exit status code is required for CI.
Ended up by removing
jasmine-rails
and going with vanillajasmine
gem.