Commit Graph

40 Commits

Author SHA1 Message Date
XhmikosR
f5ac86edf2 Assorted lint fixes. 2015-04-24 01:41:14 +03:00
Jarrod Overson
bf27b3e831 moved jshint task to test and fixed lint errors 2014-07-26 19:22:30 -07:00
Scott Davis
acca918ce5 Fixes circular reference bug phantom reporter caused by jasmine 2.0.1 2014-07-25 07:37:56 -06:00
Vlad Filippov
5d036af878 Merge pull request #134 from Wildhoney/add_cdata_to_junit
Wrapped Failure Message in CDATA
2014-07-07 14:42:21 -07:00
Michael Lennartz
bbe22a5c74 Squashed commit of the following:
commit a360e3e57fd95f6ea5fe117cca1b31ef83bbc302
Author: vladikoff <vlad.filippov@gmail.com>
Date:   Sat Jun 7 11:13:44 2014 -0700

    Fix spaces

commit 6dae9be0d83eede54e3c3bda454d716f2599d9ba
Author: Michael Lennartz <michael.lennartz@innogames.com>
Date:   Fri Mar 21 19:06:03 2014 +0100

    fix misplaced closing bracket

commit 62ccbe97707e2f47588a6c7fbaefc6877d68678b
Author: Michael Lennartz <michael.lennartz@innogames.com>
Date:   Fri Mar 21 15:49:05 2014 +0100

    add try/catch for stringify

Closes gh-132.
2014-06-07 11:13:50 -07:00
Scott Davis
2e735b34e0 Added jasmine favicon to default html runner template.
This will allow this project to be used with the [jasmine-favicon-reporter](https://github.com/simsalabim/jasmine-favicon-reporter) project as well as make the spec runner look a bit nicer.
2014-04-11 14:55:18 -06:00
Adam Timberlake
45a96782ad Wrapped Failure Message in CDATA 2014-03-27 12:47:45 +00:00
Rhys Evans
20aebec1fd Moved scripts inside the body tag
Putting scripts as the last item before the closing body tag is these days probably the most common approach to loading scripts in a page, so the jasmine template should arguably follow this convention.

Also this means setup scripts within my src that assume body is present and which run before any specs do will not throw an error
2014-02-13 10:29:35 +00:00
Jarrod Overson
f4d50bad42 removed more unnecessary code in reporter 2014-01-29 08:33:47 -08:00
Jarrod Overson
8c111a15ae added watch dep, removed console logging for performance in browser 2014-01-28 17:15:55 -08:00
Jarrod Overson
dfa9182e20 updated logging and junit output for jasmine 2.0.0 2014-01-28 17:12:51 -08:00
Jarrod Overson
27512c9dc6 making client logs more visible 2013-11-20 16:50:53 -08:00
Sheel Choksi and Tim Jarratt
cbb57ff310 Update phantom reporter to use Jasmine 2.x reporter interface
Includes support for pending specs
2013-10-30 09:46:44 -07:00
Travis Jeffery
a78d1cd558 Add jasmine v2.0.0-rc3 2013-10-25 00:19:28 -05:00
Jarrod Overson
63ccee9ef9 Merge pull request #77 from existentialism/junit-failure-output
Fixed missing junit failure output (#76)
2013-09-02 10:23:03 -07:00
Boris Staal
b704304691 PhantomReporter made not to break IE. Closes GH-71. 2013-08-12 10:10:40 -07:00
Brian Ng
0c26688e6f Slight refactor 2013-07-30 22:53:55 -05:00
Brian Ng
e89b839357 Fixed missing junit failure output (#76) 2013-07-30 19:46:45 -05:00
Jarrod Overson
ce4a167521 Added phantom polyfill, closes #63 2013-06-15 10:36:54 -07:00
Jarrod Overson
1d71a9be02 Merge branch 'forEach-ie-fix' of git://github.com/pimterry/grunt-contrib-jasmine into pimterry-forEach-ie-fix
* 'forEach-ie-fix' of git://github.com/pimterry/grunt-contrib-jasmine:
  Added explicit map implementation too, for further IE compatibility
  Whoops, stripped leftover semi-colon that makes jshint unhappy
  Switched forEach out to for(var; < length; ++) to allow compatibility with other browsers
2013-06-15 10:33:02 -07:00
Pete Hopkins
69288dc2b8 Intercepts jasmine.Spec to stringify it as "[ Spec ]" instead of JSON.
This is required for using jasmine-given with the reporter, as that library
sets expectations on jasmine.Specs themselves. When the Spec is stringified
as JSON, it ends up stringifying the entire Jasmine environment, including
previous ExpectationResults. Since those previous ExpectationResults have had
their "expected" values stringified, they may include stringified Specs
themselves. This leds to exponential growth in the size of stringified Specs.

Special-casing jasmine.Spec prevents the exponential growth by short-circuting
the value to a small, still-useful String.
2013-06-15 10:18:16 -07:00
Tim Perry
9a773a188a Added explicit map implementation too, for further IE compatibility 2013-03-28 13:06:40 +00:00
Tim Perry
f22ec9c178 Whoops, stripped leftover semi-colon that makes jshint unhappy 2013-03-28 12:54:47 +00:00
pimterry
33ff4ff10e Switched forEach out to for(var; < length; ++) to allow compatibility with other browsers 2013-03-28 00:04:02 +00:00
Felix Kling
8fc713fb13 Fixes cirular references detection in PhantomReporter.js.
The logic which was in place to convert array-like objects to arrays
prevented the circular reference detection to work properly for arrays
and array-like objects.
2013-03-08 18:06:25 -08:00
NeverI
d404617cf9 Reformatted console output + dotted visualization on runtime
(These changes does not applyed for verbose level)

Before:
should not pass: failed
should not pass: failed
should not pass: failed

Now:
.....x.x.x.
Failed level 1:: should not pass: failed
  Expected true to be false. (1)
Failed level 1:: Level 2:: Level 3:: should not pass: failed
  Expected true to be false. (3)
Failed level 1:: Level 2:: Level 3:: Level 4:: should not pass: failed
  ReferenceError: Can't find variable: asdf in file:///grunt-contrib-jasmine/test/fixtures/pivotal/spec/PlayerSpec.js (line 85) (1)
2013-02-24 02:14:11 +01:00
Jarrod Overson
3eeb595ff6 exposing sendMessage and phantom to templates 2013-02-05 14:13:10 -08:00
Jarrod Overson
7fd976a2a1 Added JUnit xml output (via Kelvin Luck @vitch)
Passing console.log from browser to verbose grunt logging
Support for templates as separate node modules
Removed internal requirejs template (see grunt-template-jasmine-requirejs)
General refactor
2013-01-08 11:28:26 -08:00
Kelvin Luck
679bb383aa Fix for the classname not appearing in the generated XML file... 2013-01-08 15:02:26 +00:00
Kelvin Luck
d6796a57a4 Not dying when there is a suite with no specs - this seems to happen in the bundled requirejs example. 2013-01-08 13:19:02 +00:00
Kelvin Luck
f19d07a209 Writing the suites out to separate xml files with the option to consolidate into one file per top level suite... 2013-01-08 13:09:05 +00:00
Kelvin Luck
ef8f191c46 Outputting additional information into the JUnit XML
Since it is available and seems to be desired by the JUnit spec [ http://stackoverflow.com/questions/4922867/junit-xml-format-specification-that-hudson-supports ]
2013-01-08 10:38:29 +00:00
Kelvin Luck
8e85e593bd Fixed a typo which prevented failure messages from appearing in output 2013-01-08 10:13:55 +00:00
Kelvin Luck
e8e95dbbca Test duration in JUnit is reported in seconds rather than miliseconds... 2013-01-08 10:09:55 +00:00
Kelvin Luck
28189d7f05 Generating an XML file from a template based on the run specs... 2013-01-07 23:04:44 +00:00
Kelvin Luck
a6fd38da1b Added the relevant code from the JUnitDataReporter into the PhantomReporter for use from within the Phantom environment 2013-01-07 22:59:19 +00:00
Kelvin Luck
0313861501 Built a JUnitDataReporter which outputs the data while is required to create a junit xml file.
It's easier to test in a browser so wrote the logic here first - will now copy across to the PhantomReporter for reuse by the plugin...
2013-01-07 21:34:04 +00:00
Jarrod Overson
f1ff456c73 generalized configuration for requirejs template, updated jasmine, added loader plugin closing #5, #6, #7 2012-12-03 00:33:32 -08:00
Tyler Kellen
e3e225cdb9 html5 templates 2012-11-28 10:52:22 -06:00
Jarrod Overson
d44d81448b Fixed race condition with requirejs template 2012-11-07 10:56:19 -08:00