Commit Graph

76 Commits

Author SHA1 Message Date
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
scheibinger
f8aed8dbf1 fixed misleading comments 2013-06-15 10:18:16 -07:00
Brian Ng
9819bbe611 Teardown now cleans up onAny event (Fixes #43) 2013-04-15 23:13:17 -05:00
Jarrod Overson
5df50a8afb Merge pull request #53 from existentialism/docs-keeprunner-update
Updated docs with new keepRunner option
2013-04-12 21:42:58 -07:00
Brian Ng
3c3fb73e09 Updated docs with new keepRunner option 2013-04-12 19:47:13 -05:00
Jarrod Overson
769357f2b4 0.4.2 2013-04-04 10:57:17 -07:00
Jarrod Overson
9df2c4ce60 updated documentation 2013-04-04 10:57:11 -07:00
Jarrod Overson
bd81d37009 Merge branch 'keep-runner' of https://github.com/irium/grunt-contrib-jasmine
* 'keep-runner' of https://github.com/irium/grunt-contrib-jasmine:
  Don't remover spec runner on fail.
  Added option 'keepRunner' to keep spec runner after specs execution.
2013-04-04 10:39:04 -07:00
Jarrod Overson
380729b874 fixed example, bumped grunt-lib-phantomjs, checking for trailing slash on host 2013-04-04 10:39:00 -07:00
Nicolas Rakoto
2069f109e2 Moved status init of defaults in setup(). Fixes gruntjs/grunt-contrib-jasmine#50 2013-03-29 23:18:51 +01:00
Tyler Kellen
ea5334ec7e quote version number for travis 2013-03-15 01:27:09 -05:00
Tyler Kellen
44404074f3 add node 0.10 to travis 2013-03-14 17:21:29 -05:00
irium
d74c91c504 Don't remover spec runner on fail. 2013-03-11 19:08:43 +04:00
irium
3800acd69c Added option 'keepRunner' to keep spec runner after specs execution. 2013-03-11 19:07:03 +04:00
Jarrod Overson
ade6a62d93 0.4.1 2013-03-10 22:17:28 -07:00
Jarrod Overson
4dbd3ccef7 updated docs, added styles options, addresses #12 2013-03-10 22:15:29 -07:00
Jarrod Overson
da897d09f1 removed errant npmload, added nonull:true and removed file filter for relative file list, fixes #18, 0.4.0 2013-03-10 21:44:06 -07: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
Bastian Behrens
dbe298a042 make the jasmine version to be used configurable, added run to test older jasmine version 2013-03-08 18:06:10 -08:00
Jarrod Overson
5a53be20d4 added templates to documentation 2013-03-08 15:36:41 -08:00
Tyler Kellen
fab59daa31 bump contrib-jshint 2013-02-26 12:04:14 -05:00
Jarrod Overson
81a5816991 0.3.3 2013-02-24 08:05:07 -08:00
Jarrod Overson
2bb1b194e6 updated changelog/built readme 2013-02-24 08:05:01 -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
NeverI
e96ab59997 From the end result I removed the failure spec count,
because task return value also displayed that information.
2013-02-24 02:05:32 +01:00
NeverI
5cea4291f4 Failure tests for easier testing (disabled) 2013-02-24 01:47:58 +01:00
NeverI
910418f83b Watch task for jasmine task change 2013-02-24 01:44:19 +01:00
NeverI
faa1032ed7 Fix missing watch task module 2013-02-24 01:43:29 +01:00
Jarrod Overson
78cd9cc35b Merge pull request #27 from christopherscott/typosfix
fixed some minor typos with js examples
2013-02-22 15:16:13 -08:00
christopherscott
cf88cc50fb fixed some minor typos with js examples 2013-02-22 10:06:43 -08:00
Tyler Kellen
6b9ecca0d1 regen readme to fix typo 2013-02-20 12:42:59 -05:00
Tyler Kellen
ed42d9dc22 add peerDependencies 2013-02-18 08:42:28 -05:00
Tyler Kellen
afb4a64142 version bump 2013-02-17 21:40:13 -05:00
Tyler Kellen
ae4203471b 0.4 release 2013-02-15 19:35:22 -05:00
Jarrod Overson
3eeb595ff6 exposing sendMessage and phantom to templates 2013-02-05 14:13:10 -08:00
Tyler Kellen
74069dd929 update getting started guide link 2013-02-05 11:53:54 -05:00
Jarrod Overson
c929d11e72 updated for grunt v0.4.0rc7 2013-01-22 17:01:38 -08:00
Jarrod Overson
82393b94bf updated for rc5 2013-01-09 21:24:18 -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
Jarrod Overson
81d45689d0 Merge branch 'issue/11' of https://github.com/vitch/grunt-contrib-jasmine 2013-01-08 10:00:13 -08:00
Jarrod Overson
b881dfa40a Merge branch 'master' of https://github.com/gruntjs/grunt-contrib-jasmine
Conflicts:
	package.json
2013-01-08 09:57:55 -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
d224f2c687 Naming the generated JUnit files TEST-[name].xml as they were in the old version of the plugin for easier migration where Jenkins is searching for files named in that way. 2013-01-08 14:36:50 +00:00
Kelvin Luck
cacf4a82be Added some basic documentation for the new JUnit options 2013-01-08 13:19:36 +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
0e5d54587d Fixing lint errors 2013-01-08 13:16:32 +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