Gregg Van Hove
0eca06a33b
Now pass a navigation helper to HtmlReporter instead of click handlers
2018-01-30 14:30:28 -08:00
Gregg Van Hove
e15f273f06
Replace old "catch exceptions" logic with proper fail fast with error reporting
...
- Option is called stopOnSpecFailure
[#85966014 ]
- See #414
- See jasmine/jasmine-npm#16
2018-01-30 11:36:56 -08:00
Gregg Van Hove
e908b67b19
Move explicit fail spec out of mock clock context and re-add the afterAll for IEs
2018-01-29 17:05:54 -08:00
Gregg Van Hove
46cc48ccfa
Detect an Error passed to done and add an expectation failure
...
- See #567
2018-01-29 16:46:30 -08:00
Gregg Van Hove
50cd6fdd68
Allow reporter callbacks to be asynchronous
...
[finishes #154673961 ]
- Fixes #842
Signed-off-by: Elenore Bastian <ebastian@pivotal.io >
2018-01-29 11:55:41 -08:00
Gregg Van Hove
341c6df6ea
Fix HTML reporter display for excluded specs
2018-01-29 10:00:15 -08:00
Gregg Van Hove
6b156ca6d1
Unify status for xdescribe and xit
...
- Ensure *All's only execute if at least one child will run
- Specs will report a status of `excluded` instead of disabled
[finishes #153967580 ]
- #1418
Signed-off-by: Elenore Bastian <ebastian@pivotal.io >
2018-01-25 16:17:31 -08:00
Elenore Bastian
07996b567f
Suite level errors are reported in failures list
...
[#150118881 ]
Signed-off-by: Gregg Van Hove <gvanhove@pivotal.io >
2018-01-23 15:39:11 -08:00
Elenore Bastian
12a47f05bf
Suite level errors all report the same way (on suiteDone)
...
- For `beforeAll`, `afterAll`, and declaration errors
[#150118881 ] #1409
Signed-off-by: Gregg Van Hove <gvanhove@pivotal.io >
2018-01-23 10:15:28 -08:00
Gregg Van Hove
414e03bded
Setup createSpy in all specs where needed and finish renaming params
...
Signed-off-by: Elenore Bastian <ebastian@pivotal.io >
2018-01-22 14:21:52 -08:00
Gregg Van Hove
038ab87252
Merge branch 'custom-spy-strategy' into 3.0-features
2018-01-22 12:12:59 -08:00
Gregg Van Hove
f20f78f82b
Don't clobber previous custom plans with later plans
...
[finishes #37288941 ]
2018-01-22 12:10:24 -08:00
Gregg Van Hove
e2a191b116
Refactor QueueRunner and remove references to functions that Jasmine is done with
...
[finishes #56030214 ]
2018-01-11 17:20:13 -08:00
Steve Gravrock
cf2f922e30
Merge branch 'master' into 3.0-features
2018-01-10 15:28:55 -08:00
Steve Gravrock
170a6dce76
Made naming somewhat less confusing
2018-01-10 09:00:09 -08:00
Steve Gravrock
4934e420b2
Allow adding custom spy strategies
...
[#37288941 ]
2018-01-10 08:59:19 -08:00
Steve Gravrock
6f119c4e5a
Moved createSpy to env so it can be stateful
2018-01-09 10:16:02 -08:00
Steve Gravrock
298b5ba127
Moved createSpyObj to env so it can be stateful
2018-01-09 09:53:45 -08:00
Steve Gravrock
16e07a0e99
Add the ability to specify the strategy to use for a spy based on which parameters are passed
...
[Finishes #92260826 ]
2018-01-03 08:49:34 -08:00
Steve Gravrock
b943f6b736
Fixed SPEC HAS NO EXPECTATIONS warning in HTML reporter
...
[Finishes #153891435 ]
2017-12-23 11:14:37 -08:00
Chris Young
62b815c485
Use timeout objects when in node
...
Fixes: https://github.com/jasmine/jasmine/issues/1469
2017-12-21 10:51:07 -08:00
Steve Gravrock
65b4499dec
In Jasmine's own tests, don't leak between jasmine and jasmineUnderTest
2017-12-20 12:08:22 -08:00
Steve Gravrock
f38527ff15
Removed IE 8 compatibility cruft from HtmlReporterSpec
2017-12-19 11:29:21 -08:00
Steve Gravrock
d742ada71d
Added links to re-run the suites containing a failing spec
...
[Finishes #25508053 ]
2017-12-19 11:29:18 -08:00
Steve Gravrock
b6cc34d9e9
Correctly remove spies of window.onerror on IE
2017-12-18 16:34:37 -08:00
Steve Gravrock
ef9f82a17d
Merge branch 'master' into 3.0-features
2017-12-18 09:48:17 -08:00
Steve Gravrock
c0d0513199
Stop serializing objects after hitting jasmine.MAX_PRETTY_PRINT_CHARS
2017-12-15 13:23:59 -08:00
Steve Gravrock
86a38fceb9
Truncate pretty printer output that is more than j$.MAX_PRETTY_PRINT_CHARS long
2017-12-13 08:09:22 -08:00
Steve Gravrock
2d33765cbf
Dogfood the toHaveClass matcher
...
[#153567695 ]
2017-12-11 16:00:29 -08:00
Steve Gravrock
bb0992bf5f
Added a toHaveClass matcher
...
[#153567695 ]
2017-12-11 15:59:59 -08:00
Steve Gravrock
ac5d8708b9
More informative pretty-printing of DOM elements
...
[Finishes ##153562618]
2017-12-11 08:25:13 -08:00
Steve Gravrock
eb93d38294
Allow jasmine-npm to handle its own load errors
...
[Fixes #153466462 ]
2017-12-08 09:17:10 -08:00
Steve Gravrock
98ead94c51
Fixed spec failure on Chrome
2017-12-01 08:28:55 -08:00
Gregg Van Hove
21655a82c9
Use prototype for spy strategy for better memory management
...
- Also convert `identity` to a property from a method
2017-11-30 17:30:20 -08:00
Steve Gravrock
0183b1642d
Removed stray debugger statement
2017-11-30 07:53:59 -08:00
Steve Gravrock
18ed34e9be
Fixed failing specs
2017-11-29 09:32:12 -08:00
Steve Gravrock
f4caf27208
Fixed pending() for async/promise-returning specs
...
Fixes #1449 .
Fixes #1450 .
2017-11-29 08:57:29 -08:00
Steve Gravrock
a63172f53f
expect(null).toEqual(jasmine.any(Object)) no longer passes
...
[Finishes #153181443 ]
Fixes #1255 .
2017-11-29 08:10:01 -08:00
Steve Gravrock
9619acf91f
Extracted the predicate version of toThrowError into its own matcher
...
This simplifies the signature of each matcher to something that jsdoc
can actually handle.
[Finishes #20622765 ]
2017-11-28 14:30:06 -08:00
Steve Gravrock
db615e4186
Determine overall status in core, not reporters
...
[#92261606 ]
[#78679648 ]
2017-11-17 14:24:12 -08:00
Steve Gravrock
5906a2c05c
Filter Jasmine frames from stack traces
...
[Finishes #2644992 ]
2017-11-13 15:49:01 -08:00
Steve Gravrock
b0ec95c472
Merge branch 'master' into 3.0-features
2017-11-10 10:26:14 -08:00
Julian Lannigan
7ac1244f58
changed tests to work in environments that dont support async/await
2017-11-10 10:17:48 -05:00
Julian Lannigan
2be5e0a962
Allowed async functions to be passed into spy#callFake
2017-11-09 19:59:23 -05:00
Steve Gravrock
a42f28c734
Removed checks for PhantomJS 1
...
v2 has been out for a long time, and v1 can no longer be easily installed.
2017-11-09 07:04:06 -08:00
Steve Gravrock
aaf226b9e3
Removed spec guards for versions of Safari we no longer support
2017-11-08 08:30:35 -08:00
Steve Gravrock
419470e9df
Removed support for IE <10
...
[#150527985 ]
2017-11-08 08:30:22 -08:00
Steve Gravrock
1526d5e2a8
Treat afterAll errors at any level as failures
...
[Finishes #152492514 ]
2017-11-07 20:48:23 -08:00
Steve Gravrock
a3cb010971
Removed remaining traces of the obsolete console reporter
...
[#80410262 ]
2017-11-07 20:09:04 -08:00
Steve Gravrock
278ef9228b
Removed obsolete console reporter from core
...
Anyone who was still using this should use the one in jasmine-npm
instead.
[Finishes #80410262 ]
2017-11-07 12:25:47 -08:00