Closed jhaber1 closed 9 years ago
First, to directly respond to your issue:
I just read Runner#get_spec_runner
and it looks like SPEC is just passed as a query param ?spec=foo
, so my guess is that giving it the full file path will not match anything. It probably needs to be the name of a describe or an it or something else that jasmine actually knows about
Another comment: I'd recommend using something like jasmine-only so you can it.only
or describe.only
to narrow what tests run. I think this only works on jasmine 1.x. not sure if similar is out for jasmine 2
Try this:
rake spec:javascript SPEC=new
Forgot I had this open...going to close it. No longer a relevant problem. Thanks for the input though!
Just implemented Jasmine into our Rails application, opting for this gem over Pivotal's due to out-of-the-box Coffeescript support, and when running
rake spec:javascript
, all tests run and everything's good. HoweverSPEC=test
does not appear to work.I've tried the following:
and both give the following output:
...when only 8 should run (2 files total, 8 specs each). In the other file, I even broke a spec on purpose and even though through the CL it said all 16 tests pass, opening up Jasmine in a browser shows that the spec (which wasn't passed in to run through
SPEC=
) had an error so it definitely was running the entire suite.As an aside, we'd like to get this integrated with our 3rd party CI service CircleCI (https://circleci.com) to allow for parallel tests, and they use the ability to pass in specific spec files to run to achive this.
Anyone run into similar issues? Am I just doing something boneheaded?
Running Ruby 2.1.2, Rails 3.2.19, jasmine-rails 0.10.0, jasmine-core 2.0.1 ... thanks in advance for any reply!