Steve Gravrock
394068f863
Depend on -npm 5.0
2022-10-08 15:39:57 -07:00
Steve Gravrock
dd98a45003
Use lcoal core when running our own tests in parallel
2022-09-18 19:59:21 -07:00
Steve Gravrock
fe6762b470
Merge branch '5.0' into parallel
2022-09-18 16:42:25 -07:00
Steve Gravrock
fa16b74500
Merge branch 'main' into 5.0
2022-09-18 13:39:05 -07:00
Steve Gravrock
4cd190b232
Merge branch 'internal-async'
2022-09-18 13:31:43 -07:00
Steve Gravrock
6ada55ff77
Parallel: Fixed reporting of exceptions thrown by a describe
2022-09-18 12:10:34 -07:00
Steve Gravrock
735ce6f758
Merge remote-tracking branch 'origin/5.0' into parallel
2022-09-18 09:43:31 -07:00
Steve Gravrock
430324885b
Merge branch 'main' into 5.0
2022-09-18 09:41:45 -07:00
Steve Gravrock
7c2e8ce7ca
Merge branch 'main' into parallel
2022-09-17 13:26:37 -07:00
Steve Gravrock
d4025999b7
Report exceptions thrown by a describe before any it calls
...
Previously, these were masked by the "describe with no children" error.
Now they're reported as suite level errors on an empty suite.
2022-09-17 13:24:45 -07:00
Steve Gravrock
871111424d
Use one worker per CPU when running own specs in parallel
2022-09-17 12:20:05 -07:00
Steve Gravrock
44f331f43d
Updated the style of the examples
...
* const/let instead of var
* classes
* pass our own eslint checks
2022-09-17 12:00:20 -07:00
Steve Gravrock
213144413f
Test parallel operation in CI
2022-09-17 11:44:24 -07:00
Steve Gravrock
2272f9aead
Parallel: run our own specs in parallel
2022-09-17 11:35:03 -07:00
Steve Gravrock
59848ca151
Coerce the random string to a seed before sending it to reporters
...
This fixes an error in HTMLReporter when the configured seed is a
number rather than a string, which has been allowed since 3.8.0
2022-09-03 12:36:35 -07:00
Steve Gravrock
c14bfe3e5f
Updated release process doc
...
* Fixed description of patch releases
* Moved -npm release docmentation to that repo
* Refer to -npm specifically rather than "binding libraries" generally,
now that we only have one of those that versions in lockstep with core.
2022-09-03 11:02:13 -07:00
Steve Gravrock
26c48ab324
Bump version to 4.4.0
2022-09-03 09:42:39 -07:00
Steve Gravrock
4c8d57e14c
Dropped support for Node 14
2022-08-27 10:47:40 -07:00
Steve Gravrock
543689e206
Depend on -npm from github
2022-08-27 10:46:25 -07:00
Steve Gravrock
ee524831f4
Merge branch 'main' into parallel
2022-08-27 10:30:21 -07:00
Steve Gravrock
cfecab9f79
Updated contributing guide
2022-08-22 18:10:33 -07:00
Steve Gravrock
b3d9435dbb
Convreted TreeProcessor to async/await
2022-08-22 17:04:44 -07:00
Steve Gravrock
fec8dd37b0
Merge branch 'main' into internal-async
2022-08-22 10:46:03 -07:00
Steve Gravrock
0690500a0d
Breaking change: Made Env#execute async
...
Errors related to invalid spec order are now reported via promise
rejection rather than synchronous throw.
2022-08-21 16:40:03 -07:00
Steve Gravrock
0bfbda720d
Breaking change: Env#execute no longer takes a callback
...
Use the returned promise instead.
2022-08-21 16:35:12 -07:00
Steve Gravrock
4fcdbd39fb
Breaking change: use addEventListener rather than setting window.onerror
...
* Generally simplifies error handling in browsers
* Makes Jasmine's own integration tests easier to debug
* Stack traces will be provided for more global errors
* ... but less error information will be provided in some browsers if the
error comes from a file:// URL (use `npx serve` or similar instead)
* Jasmine will no longer override existing onerror handlers in browsers
* Setting window.onerror will no longer override Jasmine's global error
handling (use jasmine.spyOnGlobalErrors instead)
2022-08-21 16:17:18 -07:00
Steve Gravrock
f934e6d816
Assume that addEventListener/removeEventListener are present in browsers
...
Jasmine 3.0 dropped support for the last browser that didn't support
the standard event handler methods (IE 9).
2022-08-20 10:27:44 -07:00
Steve Gravrock
79c6bbc189
clearStack optimizations
...
* Avoid setTimeout in Node, because we don't need the overhead there.
* Still call setTimeout in browsers to prevent the tab from being killed.
* Use queueMicrotask in Safari, because it's dramatically faster than
MessageChannel there.
* Continue to use MessageChannel in other supported browsers becuase it's
somewhat faster than queueMicrotask there.
* Don't use setImmediate any more because there's a faster alternative in
all supported envs.
In jasmine-core's own test suite, this yields a roughly 50-70% speedup
in Node, ~20% in Edge, and 75-90%(!) in Safari.
2022-08-15 17:50:49 -07:00
Steve Gravrock
2e80ec0c22
Rm dead code for QueueRunner deprecations
2022-08-11 19:51:08 -07:00
Steve Gravrock
588283cfe5
Breaking change: support for -npm reporter handling in parallel mode
...
* The `boot` function exported by the core module returns the same object
every time it's called.
* Removed node_boot.js. Use the exported `boot` function instead
* JasmineStartedInfo does not have totalSpecsDefined or order in parallel mode
* JasmineDoneInfo does not have order in parallel mode
* Added incompleteCode and numWorkers to JasmineDoneInfo
2022-08-10 18:23:38 -07:00
Steve Gravrock
3a43871901
Reset the env state between parallel batches
2022-08-06 10:55:02 -07:00
Steve Gravrock
fcbab02b2d
Droped support for Node 12
2022-08-06 10:55:02 -07:00
Steve Gravrock
5f3475342e
Re-added missing JasmineStartedInfo jsdoc
2022-08-06 10:53:28 -07:00
Steve Gravrock
e022e6199c
Bump version to 4.3.0
2022-07-23 10:27:19 -07:00
Steve Gravrock
140c12e8fc
Added Firefox 102 (current ESR) to CI
2022-07-23 10:17:21 -07:00
Steve Gravrock
21f25972bb
Converted ReportDispatcher to promises
2022-07-01 17:25:22 -07:00
Steve Gravrock
d0e1bd96fb
README updates
...
* Removed redundancy
* Added a link to the FAQ
* Removed obsolete support channels
2022-07-01 16:58:38 -07:00
Steve Gravrock
6c56ebc984
Added jasmine.spyOnGlobalErrorsAsync
...
* Allows testing code that's expected to prodeuce global errors or
unhandled promise rejections
* Fixes #1843
* Fixes #1453
2022-06-30 18:09:56 -07:00
Steve Gravrock
d0a9931ae6
Separated reporter- and runable-specific queue runner configuration
2022-06-12 15:52:14 -07:00
Steve Gravrock
93c5f654d9
Extracted most suite-running code out of Env
2022-06-12 15:46:03 -07:00
Steve Gravrock
d8b65028a1
Pass queue runner factory to Spec#execute, not ctor
2022-06-12 12:34:46 -07:00
Steve Gravrock
d6cdc1841c
Extracted suite building out of Env
2022-06-12 09:49:01 -07:00
Steve Gravrock
72b39220e5
Runable, not runnable
2022-06-11 15:41:29 -07:00
Steve Gravrock
55dce7d119
Extracted runnable resource management out of Env
2022-06-11 15:28:37 -07:00
Steve Gravrock
789736dd02
Additional test coverage for default spy strategies
2022-06-11 15:08:02 -07:00
Steve Gravrock
c7ca3b0101
Converted integration specs to async/await
2022-06-11 13:43:44 -07:00
Steve Gravrock
96000220b1
Use arrow fns rather than self = this
2022-06-11 12:12:11 -07:00
Steve Gravrock
e2e2275d41
Removed obsolete and unused utility fns
2022-06-11 11:17:16 -07:00
Steve Gravrock
135ff20123
Replaced uses of var with const/let
2022-06-09 20:00:23 -07:00
Steve Gravrock
4af86f5398
Added supported envs to releasen notes
2022-06-09 18:25:04 -07:00