Már Örlygsson
ceabe993a3
fix(ospec): Only run o.run() once ( #2142 )
2018-05-07 01:46:56 +02:00
Már Örlygsson
cfaa377c1e
[ospec] feat: nicer binary with support for globs ( #2141 )
...
* feat(ospec): CLI support for file-patterns and an --ignore flag
The added dependency is only used by the node.js binary - which normally only ever installed via npm/yarn anyway.
This does not interfer with ospec proper being dependencyless.
* chore(mithril): Add glob dependency needed by the ospec binary
this is only needed while ospec is inlined in the
mithril repo. As soon as ospec is split away into a
standalone npm module, this will not be required anymore.
* refactor(ospec): Use 'match' events instead of callback
Performance should be similar, but the code looks
cleaner and easier to grok.
* Misc tweaks
2018-05-07 01:32:01 +02:00
Pierre-Yves Gérardy
c34b0decc9
ospec v1.4.1 change log
2018-05-04 21:36:19 +02:00
mar
af3f69dfef
docs: Add first attempt at ospec change-log file
2018-05-04 21:36:19 +02:00
Pierre-Yves Gérardy
4818109c9a
Merge branch 'next' into iss-1798
2018-05-04 14:08:39 +02:00
Pierre-Yves Gérardy
d2e80f7345
A more general fix
2018-05-04 14:05:42 +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
769c854f82
Expose the reporter as o.report(results), have it return the number of errors
2017-11-30 23:25:31 +01:00
Pierre-Yves Gérardy
acd08c96dd
Make the stack trace cleaner IE9 compatible (err.stack is null)
2017-11-30 23:00:26 +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
cd3c1afca2
Readme: adjust the LOC count
2017-11-30 00:27:48 +01:00
Pierre-Yves Gérardy
0873cb53cc
Make the stack trace filter path-independent (auto-detection vs. hardcoded previously)
2017-11-30 00:27:08 +01:00
Pierre-Yves Gérardy
b38ba7c934
Pop report() off the stack (for better Flems output)
2017-11-29 22:15:45 +01:00
Pierre-Yves Gérardy
f06510bb62
Make ospec work natively in browser environments
2017-11-29 22:15:45 +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
spacejack
0736f848cb
Silence global-require rule in ospec, add ecma 2017 parser to eslintrc for async/await in test-ospec
2017-10-28 17:39:32 -04:00
Pat Cavit
1a6b6a591c
chore(ospec): merge package.json @ 1.4.0 back
2017-10-17 15:25:15 -07:00
Roderic Day
8fe7088398
Handle newlines in error messages, fixes #1495
2017-10-10 23:10:06 -04:00
Rasmus Porsager
406a08d836
Use util.inspect to log in node - fixes #1661
2017-09-01 14:02:58 +02: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
Pat Cavit
8bc343459c
chore: ospec@1.3.0
2017-07-12 21:04:09 -07:00
Pat Cavit
7abe16cdc9
chore: add license files to sub-packages
2017-07-12 21:04:09 -07:00
Pat Cavit
6502cc366d
docs: update ospec so version/license are automatic
2017-07-12 21:04:09 -07:00
Pierre-Yves Gérardy
d65fd020cd
[ospec:docs] test suites can now be named [skip ci]
2017-07-09 17:04:26 +02:00
Pierre-Yves Gérardy
cbb3db7b88
Merge branch 'next' into ospec-named-suites
2017-07-06 22:12:39 +02:00
Paul D. Fernhout
95addffda6
Update ospec to ignore hidden directories and files
2017-05-20 17:09:32 +00:00
Pat Cavit
bef58fdfa5
chore: Update repo references ( #1834 )
2017-05-02 09:24:12 -07:00
Jonah
277ac9e171
Fix issue #1798
2017-04-15 16:05:08 -04:00
Isiah Meadows
934e0ac55e
Merge branch 'next' into strict-mode
2017-03-09 11:54:32 -05:00
Leo Horie
5fa4c6025a
Merge pull request #1555 from pygy/ospec-no-global-install
...
[ospec:docs] Document the fact that ospec doesn't work when installed globally
2017-03-09 09:47:13 -05: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
Pierre-Yves Gerardy
ee6d991e51
[ospec:docs] Document the fact that ospec doesn't work when installed globally
2017-01-22 10:43:48 +01:00
James Yang
1403c66072
fix: stat is undefined in some cornor case
2017-01-13 17:11:12 +08:00
Pierre-Yves Gerardy
2c2ca73c22
[ospec] Add the possibility to name new test suites
2017-01-10 21:29:34 +01:00
Pierre-Yves Gerardy
bd519f3c23
[ospec] fix nextTickish()
2017-01-10 14:59:09 +01:00
Leo Horie
6c5a7e6e62
Merge branch 'rewrite' into next-tick
2017-01-10 08:18:50 -05:00
Leo Horie
360a68ad26
Merge pull request #1522 from pygy/ospec-improve-dedupe
...
[ospec] Improve the dupe detection code
2017-01-09 07:49:41 -05:00
Pierre-Yves Gerardy
396a7ff4e4
[ospec] Simplify the dupe checker
2017-01-09 10:24:03 +01:00
Pierre-Yves Gerardy
a7ea060a64
[ospec] Add hasOwn shortcut
2017-01-09 10:16:53 +01:00
Pierre-Yves Gerardy
f13561e200
[ospec] Improve the dupe detection code
2017-01-08 21:20:43 +01:00
Leo
d40b324645
doc fixes
2017-01-08 14:47:38 -05:00
Leo Horie
9ad16858a5
#1520 ospec: report duplicate test names
2017-01-08 13:05:27 -05:00
Bryce Gibson
1dec7eb3f6
Use process.nextTick if available to reduce stack size.
2017-01-03 19:04:11 +11:00
Bryce Gibson
7868d97006
Remove o.only call to ensure other tests are run.
2017-01-03 11:19:55 +11:00