Steve Gravrock
4934e420b2
Allow adding custom spy strategies
...
[#37288941 ]
2018-01-10 08:59:19 -08:00
Steve Gravrock
1085914a76
Extracted a SpyFactory to slim Env down a bit
2018-01-09 13:32:28 -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
eb93d38294
Allow jasmine-npm to handle its own load errors
...
[Fixes #153466462 ]
2017-12-08 09:17:10 -08:00
Steve Gravrock
db615e4186
Determine overall status in core, not reporters
...
[#92261606 ]
[#78679648 ]
2017-11-17 14:24:12 -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
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
ksvitkovsky
7ca571a746
Remove runnable parameter for simplicity
2017-08-10 23:08:59 +04:00
ksvitkovsky
4240b3514b
Check runnable instead of suite
2017-08-10 22:58:30 +04:00
ksvitkovsky
ab116fbd0f
Throw an error on nested methods
2017-08-10 22:05:13 +04:00
Gregg Van Hove
1926fc11ae
Add jsdocs for reporter events
2017-08-09 10:21:59 -07:00
Steve Gravrock
585287b9d6
When stop on failure is enabled, skip subsequent it() and beforeEach().
...
Note: afterEach() functions are still run, because skipping them is
highly likely to pollute specs that run after the failure.
[Finishes #92252330 ]
- Fixes #577
- Fixes #807
2017-06-19 13:48:43 -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
Steve Gravrock
9672689d40
Added support for ES2017 async functions
2017-05-12 14:42:14 -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
Tony Brix
d2b33e0c66
allow undefined as function
2017-04-26 13:49:13 -07:00
Gregg Van Hove
19b83a7434
Throw a recognizable Error message when fail outside of a spec.
...
Fixes #1017
2017-04-11 12:02:29 -07:00
Gregg Van Hove
7f8f2b5e7a
Update jsDocs to something close to full coverage for public API
...
- #596
2017-03-23 12:20:08 -07:00
Gregg Van Hove
9cb2f06aa6
Add a first pass at jsdoc.
...
[##130415655] #596
2017-03-21 11:36:41 -07:00
Gregg Van Hove
a37b6c0d32
Merge branch 'master' of https://github.com/mmmichl/jasmine into mmmichl-master
...
- Merges #1283 from @mmmichl
2017-03-14 17:50:28 -07:00
Gregg Van Hove
1042c9a2dd
Collect unhandled exceptions and pass them to the current runnable
...
Fixes #529
Fixes #937
2017-03-07 16:32:11 -08:00
mmmichl
8807bbb850
Pretty print objects passed to fail method
...
Fixes #1090
2017-02-26 19:25:02 +01:00
Zaven Muradyan
b59ac96b51
Require arguments to beforeEach, it, etc, to be actual functions
2016-12-27 23:53:35 -08:00
Gregg Van Hove
da2005fe97
Merge branch 'beforeall-in-xdescribe' of https://github.com/voithos/jasmine into voithos-beforeall-in-xdescribe
...
- Merges #1225 from @voithos
- Fixes #1175
2016-12-02 09:56:36 -08:00
Gregg Van Hove
5a76e59d5b
Merge branch 'spyOnProperty2' of https://github.com/celluj34/jasmine into celluj34-spyOnProperty2
...
- Merges #1203 from @celluj34
- Merges #1008 from @smacker
- Fixes #943
2016-11-04 14:36:56 -07:00
Zaven Muradyan
c21bdaf35d
Fix bug where before/afterAll were being executed in disabled suites.
2016-10-23 20:40:58 -07:00
Gregg Van Hove
17c89c69d6
Separate clear stack and run it after each spec
...
[finishes #50197985 ][fix #109418332 ]
- Fixes #985
- Fixes #945
- Fixes #366
2016-10-14 09:21:49 -07:00
Gregg Van Hove
04bb56a5b5
Allow currently registered reporters to be cleared
...
- jasmine/jasmine-npm#88
2016-09-16 16:02:08 -07:00
Henry Blyth
8e23c26383
Make spyOnProperty available in tests
...
Needed adding to the env and require interface
2016-09-12 18:22:58 -05:00
Greg Einfrank
e13c7a55a9
Remove runnableLookupTable which is no longer used
2016-06-08 10:59:42 -07:00
Gregg Van Hove
dbd198f7d0
Allow expectations in a global beforeAll or afterAll
...
- Report afterAll failures in jasmineDone
- Issue #811
2016-02-25 15:01:47 -08:00
Gregg Van Hove
5583b6f954
Top-level specs should compute fullName the same as Suites
...
- No longer include "Jasmine__TopLevel__Suite"
2016-02-25 14:29:35 -08:00
Gregg Van Hove
602f5bc08a
Merge branch 'fallback-report' of https://github.com/mauricioborges/jasmine into mauricioborges-fallback-report
...
- Merges #1009
2016-02-22 10:20:48 -08:00
Gregg Van Hove
5bdd7e8fbf
Merge branch 'issue-931-respy' of https://github.com/guy-mograbi-at-gigaspaces/jasmine into guy-mograbi-at-gigaspaces-issue-931-respy
...
- Merges #953
- Fixes #931
2016-02-18 11:40:01 -08:00
Gregg Van Hove
1e0381a495
Update describe error message to no longer assume errant args are done
...
Fixes #896
2016-02-18 09:31:31 -08:00
Mauricio Borges Silva
6489b0f400
Add support on Env to provide fallback report
2016-02-15 23:12:05 -02:00
Jurko Gospodnetić
a047115eef
remove extra topSuite queueRunner construction parameter
...
The `Suite` constructor function does not expect or use the its only `attrs`
parameter's `queueRunner` attribute, so setting it serves no purpose and
only clutters the code and makes it more difficult to understand.
2015-12-26 21:49:45 +01:00
Gregg Van Hove
e2e2d1b343
Revert #908
...
- Run `afterEach` in reverse order declared as before
2015-12-03 16:02:32 -08:00
Gregg Van Hove
0f6a7f04b3
Merge branch 'issue#896' of https://github.com/himajasuman/jasmine into himajasuman-issue#896
2015-10-27 14:12:31 -07:00
Himaja
110cacab19
Added a throw error block in describe incase a function with arguments is passed in describe
2015-10-25 14:13:14 -04:00
guy-mograbi-at-gigaspaces
e7dbc75fc2
feat(spy): add option to respy
...
will not throw error if spyOn called on a spy
fixes #931
2015-10-24 08:37:33 +03:00
Cody Sehl
e5c2572753
Change #xit so that it will output a more BDD-style pending message
2015-10-14 21:03:47 -06:00
Marcio Junior
3f3fa484b2
Allow tests to run in random order
2015-09-26 14:53:08 -03:00
Martin Camacho
f3a7396845
afterEach behavior
2015-08-18 17:55:03 -04:00
Liam Wall
7bfc4c0a45
xdescribe marks pending, plus associated tests.
2015-05-29 17:21:28 +01:00
Steve Gravrock
2af9a45fb2
Correctly handle functions that are scheduled after the clock is uninstalled and reinstalled from within Clock#tick.
...
Fixes #790 .
2015-03-14 17:40:27 -07:00