Greg Cobb and Tim Jarratt 97867b2bf5 Reports expectation failures in afterAlls
This makes the specs green and appears to work for most cases. I have a
number of concerns about the implementation and would appreciate
ideas/feedback.

- Suite#addExpecationResult infers if it is coming from an afterAll fn
  based on if the first child of the suite is finished. This assumes
  that the first child of the suite is a spec (this appears to be true
  as long as there is at least one spec in the suite)
  - Suites behave like unfinished specs. Because suites will propagate
    expectation failures to their children suites, the afterAll
    expectation reporting appears to work for suites without specs
    unless you have:
    1) An otherwise empty suite with an afterAll
    2) An afterAll'd suite whose first suite is empty (or whose first
    suite's first suite is empty (and so on))
- Changed afterAllError to afterAllEvent, so it can accommodate both
  errors and expectation failures. The reporter now receives a string
  instead of the actual error object. The loss of the object doesn't
  affect our reporters, but may be a nice-to-have for other reporters/
  the future.
- The gap between the expectations caught in Suite and QueueRunner (who
  triggers reporting via an injected callback) is an array injected into
  QR by the Suite. The array is then flushed at some point (currently
  after the attempt… functions). This works, but is a bit goofy.

[#73741654]
2014-08-26 18:04:12 -07:00
2013-10-04 10:55:01 -07:00
2012-12-03 09:38:54 -08:00
2013-10-04 13:32:56 -07:00
2013-08-06 08:04:37 -07:00
2014-02-16 22:13:53 +01:00
2011-03-09 08:16:47 -08:00
2014-02-16 22:13:53 +01:00
2014-02-16 14:57:14 -08:00
2014-01-24 09:32:20 -08:00

Jasmine Build Status Code Climate

=======

A JavaScript Testing Framework

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.

Documentation & guides live here: http://jasmine.github.io
For a quick start guide of Jasmine 2.0, see the beginning of http://jasmine.github.io/2.0/introduction.html

Contributing

Please read the contributors' guide

Support

Maintainers

Maintainers Emeritus

Copyright (c) 2008-2013 Pivotal Labs. This software is licensed under the MIT License.

Description
No description provided
Readme 68 GiB
Languages
JavaScript 94.8%
TypeScript 2.4%
Vue 1.1%
CSS 0.9%
SCSS 0.5%
Other 0.2%