johnjbarton
a8c2399dd8
feat(result.duration): report test duration in ms
...
Wrap spec start/complete in Timer start/elapsed.
configuration.timeSpecDuration = false will disable feature.
* Add Suite result.duration, elapsed time in ms
* Remove timeSpecDuration option.
* Respond to review, use noopTimer
2019-03-14 09:13:57 -07:00
Felix Rilling
dde93ade18
Fixed typos in comments.
2019-03-10 11:04:33 +01:00
Gregg Van Hove
4991f2a713
Merge branch 'print_global_error_type' of https://github.com/jbunton-atlassian/jasmine into jbunton-atlassian-print_global_error_type
...
- Merges #1632 from @jbunton-atlassian
2019-02-11 09:02:16 -08:00
johnjbarton
c36a005893
Support Error.stack in globalErrors.
...
See https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror
2019-01-03 16:14:23 -08:00
James Bunton
d803bd12a6
When catching a global error in Node.js, print the type of error
2018-12-11 08:32:45 +11:00
Gregg Van Hove
92d0882a32
Introduce a configuration object to Env deprecating old single use functions
...
[finishes #159158038 ]
2018-09-25 17:08:41 -07:00
Gregg Van Hove
110c092c9e
Fix regular expressions for different browsers
2018-06-18 17:55:24 -07:00
Ilya Konstantinov
8c1b80daae
Improve Jasmine timeout error message
2018-06-18 17:36:43 -07:00
Steve Gravrock
9472df0db4
Added a basic set of async matchers
...
- Fixes #1447
- Fixes #1547
2018-06-04 21:07:44 -07:00
Gregg Van Hove
7e14a97371
Explicitly pass in timing functions in mock clock integration specs
...
- This way we can make sure that clear stack always works no matter
how long the suite in the spec is
[fixes #153518103 ]
2018-04-23 17:25:11 -07:00
Gregg Van Hove
c440d13754
Use the same global for everything in Env
...
- No longer use `getGlobal` for clearStack and QueueRunner
2018-04-13 17:14:48 -07:00
Gregg Van Hove
11f4d894a6
Merge branch 'node-load-errors'
...
- See #1519
2018-02-26 16:44:45 -08:00
sylhare
7fb53dcdfa
Fixing missing semi-colons
2018-02-21 09:01:24 -05:00
Steve Gravrock
1ac2a6f608
Allow node to report load time errors
...
[Fixes #153466462 ]
2018-02-17 15:45:42 -08:00
Tony Brix
6193bc113b
throw errors
2018-02-08 15:12:14 -06:00
Tony Brix
c859128537
add tests
2018-02-07 23:58:26 -06:00
Gregg Van Hove
764d58a7f5
Merge branch 'master' into 3.0-features
...
- cleaning up 2.99 deprecations
2018-02-06 09:31:51 -08:00
Gregg Van Hove
24bf3489dc
Display deprecation warnings in HTML reporter
...
- Also no longer check for stack since IE doesn't do that
[#154746527 ]
2018-02-05 12:11:36 -08:00
Gregg Van Hove
5afe1222f4
Add ability to report deprecation warnings from within the suite
...
[#154746527 ]
2018-02-05 11:19:15 -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
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
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
Steve Gravrock
ef9f82a17d
Merge branch 'master' into 3.0-features
2017-12-18 09:48:17 -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
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
db615e4186
Determine overall status in core, not reporters
...
[#92261606 ]
[#78679648 ]
2017-11-17 14:24:12 -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
82eeed3c85
Improved reporting of load errors and afterAll errors
...
- Pass file and line number to reporters when present
- Show file and line number in the HTML reporter when present
- Visually separate adjacent errors in the HTML reporter
[#24901981 ]
2017-11-04 10:28:42 -07:00
Steve Gravrock
ae9b95269c
Load error handling doesn't depend on browser features, so test it everywher
...
[#24901981 ]
2017-11-02 18:17:40 -07:00
Steve Gravrock
26a7bc6acf
Report loading errors as loading errors, not afterAll errors
...
[#24901981 ]
2017-11-01 14:09:29 -07:00
Steve Gravrock
bd250f27c7
Fail if error events (e.g. syntax errors) occur during loading
...
[#24901981 ]
2017-10-31 21:16:00 -07:00
Steve Gravrock
e31db20ec7
Default to running tests in random order
...
[Finishes #109197518 ]
2017-10-27 08:50:40 -07:00
Steve Gravrock
4c6dadb9b1
Merge branch 'github-1295' of https://github.com/ksvitkovsky/jasmine
...
- Merges #1411 from @ksvitkovsky
2017-10-23 11:58:30 -07:00
Gregg Van Hove
6d0f0ed915
Only use the extra setTimeout outside of IE8.
2017-08-10 16:38:13 -07:00
ksvitkovsky
da2673e02f
Test nested methods to throw an error
2017-08-10 22:05:13 +04:00
Gregg Van Hove
2588b442e6
Integration specs that actually execute a suite need to be async
2017-08-09 11:51:26 -07:00
Gregg Van Hove
af41e5ea5c
Properly wait until test env has completed before moving on.
2017-08-09 11:43:55 -07:00
darthjee
b0aac6b852
Add class UserContext
2017-07-26 23:40:22 +02:00
Gregg Van Hove
2e737f50ca
Don't use window
2017-06-15 14:32:18 -07:00
Gregg Van Hove
c60d669940
Break into a setTimeout every once in a while
...
- Allows the CPU to run other things that used the real `setTimeout`
- Fixes #1327
- See #1334
- Fixes jasmine/gulp-jasmine-browser#48
2017-06-15 14:24:40 -07:00
Gregg Van Hove
578f63b9bd
Make sure the queue runner goes async for async specs
...
- Even if `done` is called synchronously.
See #1327 #1334 jasmine/gulp-jasmine-browser#48
2017-06-06 14:29:02 -07:00
Gregg Van Hove
3372af1cf1
Merge branch 'seed-reporting' of https://github.com/sgravrock/jasmine into sgravrock-seed-reporting
...
- Merges #1348 from @sgravrock
2017-05-23 14:12:49 -07:00
Gregg Van Hove
d355fa0806
Don't tick extra. It's breaking IE 8 & 9
2017-05-22 14:27:08 -07:00
Steve Gravrock
b1e97cfb09
Correctly route errors that occur while a QueueRunner is clearing stack
...
Besides surfacing the error in the hopefully-correct place, this also
prevents the queue runners for sibling suites from interleaving, which
in turn prevents all kinds of internal state corruption.
Signed-off-by: Gregg Van Hove <gvanhove@pivotal.io >
2017-05-09 15:01:18 -07:00
Steve Gravrock
e6a7932ec1
Report the random seed at the beginning and end of execution
...
This allows reporters to provide the seed to the user even in cases
where Jasmine crashes before completing.
2017-05-08 12:09:17 -07:00