Commit graph

35 commits

Author SHA1 Message Date
Isiah Meadows
f844cc8134 Add functionality for inspecting arbitrary past calls
This made it much easier to debug multiple calls while developing this
patch.
2018-09-20 15:08:49 -04:00
Pierre-Yves Gérardy
14695c9cda [ospec] Allow more than one o.only() test 2018-06-01 20:22:58 +02:00
Pierre-Yves Gérardy
a23216b987 [ospec] record errors thrown in tests as failures 2018-06-01 20:22:58 +02:00
Pierre-Yves Gérardy
53597871b8 [ospec] don't allocate task for tests that will be skipped in o.only mode, fix stack overflow 2018-06-01 20:22:58 +02:00
Pierre-Yves Gérardy
4a4377e553 [ospec] Make the specTimeout tests hopefully less flaky 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
aa0f9eae98 [ospec] o.defaultTimeout => o.specTimeout, and documentation.
The timeout parameter is deprecated but will still work for now
2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
8ebf036b8c [ospec] Improve the done() call checker 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
33180370ea [ospec] Change the reserved test name token from '__' to '\x01' 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
285d00742d [ospec] Detect incomplete assertions 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
ad83d617e1 [ospec] replace ES6 std lib call with ES5 equivalent 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
e342805bfb [ospec] Add o.defaultTimeout() 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
9c1f8d5f35 [ospec] cleanup in code and tests, better error messages 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
8d78d493a7 [ospec] tests for the done() callback 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
3ac17d0075 ospec: tests and docs for o.report 2017-11-30 23:52:52 +01:00
Pierre-Yves Gérardy
b84e09369e ospec: better stack trace filter, fix #2036 2017-11-30 16:10:14 +01:00
Pierre-Yves Gérardy
d116f249db lint: fix quotes 2017-11-29 17:08:46 +01:00
Sage Gerard
78eeb2b365 feat(ospec): Allow custom reporters for CI reasons (#2019) (#2020) 2017-11-20 15:37:07 -08:00
Isiah Meadows
3c608f26b7
Merge pull request #1984 from RodericDay/newlines-in-error-messages
Handle newlines in error messages, fixes #1495
2017-10-28 20:20:34 -04:00
spacejack
3fe56bb503 Revert eslintrc change, return Promise instead of using async/await 2017-10-28 18:32:58 -04:00
Roderic Day
8fe7088398 Handle newlines in error messages, fixes #1495 2017-10-10 23:10:06 -04:00
Stephan Hoyer
39be9134f9 Support err as first argument for done callbacks in async tests 2017-08-31 19:31:08 +02:00
Stephan Hoyer
b345e4f023 Support promise return in ospec 2017-08-31 19:31:08 +02:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Pierre-Yves Gerardy
b70ba6709a [ospec] stricter valid context for test definitions and assertions 2017-02-13 19:39:32 +01:00
Pierre-Yves Gerardy
9b3e646303 [ospec] make o.only noisier 2017-02-11 23:02:06 +01:00
Bryce Gibson
7868d97006 Remove o.only call to ensure other tests are run. 2017-01-03 11:19:55 +11:00
Pierre-Yves Gerardy
027a220779 [ospec:tests] Add assertion for object with undefined properties vs none 2017-01-01 16:09:15 +01:00
Pierre-Yves Gerardy
af39796da3 [ospec:tests] Add assertions for array deepEquals corner cases 2017-01-01 15:28:26 +01:00
Leo Horie
b62663bdc1 ensure properties in arrays are tested #1497 2016-12-31 19:27:23 -05:00
Barney Carroll
b8e3dcfbe4 Code style fix for 6b922d0: substitute double quotes 2016-08-31 11:54:21 +01:00
Barney Carroll
6b922d02ea Spies reflect wrapped function's name & length 2016-08-31 11:51:15 +01:00
Barney Carroll
211802793d [ospec] allow spy to wrap functions 2016-08-30 17:10:21 +01:00
Leo Horie
a6c56ff6b9 resolve hook in router 2016-07-11 09:50:00 -04:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
559369016d initial commit (work in progress) 2016-04-20 20:02:37 -04:00