axemclion/grunt-saucelabs — pull request #7 by smithclay (2012-12-05 00:45:07+00:00)
Title: Add support for jasmine 1.2.0

Since jasmine 1.3.0 is relatively new, a lot of people (including myself) have specs that still run jasmine-1.2.0.

I've added some code lets grunt-saucelabs work with jasmine version 1.2.0 and 1.3.0. It parses the jasmine version from the `.version` span in SpecRunner and then gets the test result out of the result element on the page for that version of jasmine.

Looking at the jasmine piviotal page, it looks like there is now a version 1.3.1 and a 2.0.0 release candiate coming up: https://github.com/pivotal/jasmine/tags

I'm not sure how the SpecRunner is changing in the next releases, but one possibility for the future is using the jasmine JS API instead of parsing the HTML to get the pass/fail status. That seems like it'd be subject to less change release-to-release (hopefully).