You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does not report each individual failing test, but I wanted to avoid using too much javascript through selenium.
require'spec_helper'# For use alongside Jasminerice# Requirements: Capybara, Underscorejs# Remember this is a request spec, so place in spec/requests/ or# tag scenario with request: tue.feature"JasmineSpecs"doscenario"should all pass",js: truedovisit"/jasmine"wait_untildopage.evaluate_script("jsApiReporter.finished")endjasmine_results=page.evaluate_script(<<-TRUTH_JS) _.all(jsApiReporter.results(), function(r) { return r.result == "passed"} ) TRUTH_JSjasmine_results.shouldbe_trueendend
rake jasmine:ci does not work because it expects javascript files and does run the rails server ( mount the asset pipeline ).
I've had an attempt at it but altering selenium path to localhost:/jasmine just renders a File not found: /jasmine error.
This would be extremely useful for those hoping to run jasmine specs through selenium in a browser (useful when working with WebGL).
The text was updated successfully, but these errors were encountered: