Pierre-Yves Gérardy
2969b8323c
ospec v2.1.0
2018-05-25 15:12:12 +02:00
Pierre-Yves Gérardy
562d680981
[ospec/bin] Back to ES5 (and complimentary cleanup), fix #2160
2018-05-24 18:57:04 +02:00
Pierre-Yves Gérardy
010d8daae9
[ospec] pinpoint the o.only() call site
2018-05-22 18:35:26 +02:00
Már Örlygsson
2794ceb76f
[ospec] Make the default reporting nicer looking ( #2147 )
...
* feat(ospec): Add spacing before report results
...sometimes tested code emits console.log() messages
which then blend in with ospec's report
* feat(ospec): Reword and prettify the report messages
* feat(ospec): Make console.errors more compact, yet more readable
* docs(ospec): Update change-log.md
* fix(ospec): Fix grammar when number of assertions is 1
* feat(ospec): Make "all passed" message bright green
* refactor(ospec): define `cStyle()` helper for browser styling
* feat(ospec): Use en-dashes for the horizontal divider
* feat(ospec): Revert stacktrace coloring, make context bright red
...and add extra newline above each error - for readability
in commandline (node.js) mode
* feat(ospec): Improve the only-test-passed message
"1 assertion passed" --> "The 1 assertion passed"
* docs: Update LOC count
2018-05-22 18:19:54 +02:00
Pierre-Yves Gérardy
95fbdf9ea2
[ospec] change log: credit @zyrolasting
2018-05-09 21:11:52 +02:00
Pierre-Yves Gérardy
9df3e97cc3
[ospec] v2.0.0
2018-05-09 21:04:24 +02:00
Gilbert
91b08c6491
Add --require feature to ospec executable ( #2144 )
...
* Allow requires before running tests
This enables requiring modules like `esm` before any test files are loaded.
* Update ospec documentation
Also add documentation for `--require` option
* Update ospec change-log.md
* [opsec] move the change log item to v2.0
* [ospec] tweak the docs
2018-05-09 17:46:55 +02:00
Pierre-Yves Gérardy
43053c6088
[ospec] don't output colors when pipe or file redirection is used ( #2143 )
2018-05-09 07:58:47 +02:00
Pierre-Yves Gérardy
ca1bce9732
[ospec] Update change log to reflect #2141
2018-05-07 01:52:49 +02:00
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
5bbaac4259
ospec: tests and docs for o.report
2017-12-01 00:29:38 +01:00
Pierre-Yves Gérardy
ff330e5605
Expose the reporter as o.report(results), have it return the number of errors
2017-12-01 00:29:26 +01:00
Pierre-Yves Gérardy
3164031ba4
Make the stack trace cleaner IE9 compatible (err.stack is null)
2017-12-01 00:29:14 +01:00
Pierre-Yves Gérardy
7caebddcb2
ospec: better stack trace filter, fix #2036
2017-12-01 00:28:59 +01:00
Pierre-Yves Gérardy
a96e4d8aa6
Readme: adjust the LOC count
2017-12-01 00:28:35 +01:00
Pierre-Yves Gérardy
1f9a9c0ef8
Make the stack trace filter path-independent (auto-detection vs. hardcoded previously)
2017-12-01 00:28:13 +01:00
Pierre-Yves Gérardy
71de4fa6c9
Pop report() off the stack (for better Flems output)
2017-12-01 00:27:21 +01:00
Pierre-Yves Gérardy
af35e4b446
Make ospec work natively in browser environments
2017-12-01 00:27:08 +01: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
95b5509564
lint: fix quotes
2017-11-29 17:09:24 +01:00
Pierre-Yves Gérardy
d116f249db
lint: fix quotes
2017-11-29 17:08:46 +01:00
Sage Gerard
4a72829985
feat(ospec): Allow custom reporters for CI reasons ( #2019 ) ( #2020 )
2017-11-29 17:03:38 +01:00
spacejack
b771b67111
Revert eslintrc change, return Promise instead of using async/await
2017-11-29 17:03:07 +01:00
spacejack
d4181d17c8
Silence global-require rule in ospec, add ecma 2017 parser to eslintrc for async/await in test-ospec
2017-11-29 17:02:53 +01:00
Pat Cavit
c5fac4a51e
chore(ospec): merge package.json @ 1.4.0 back
2017-11-29 17:02:26 +01:00
Roderic Day
69045af46c
Handle newlines in error messages, fixes #1495
2017-11-29 17:00:54 +01:00
Rasmus Porsager
7f2ff03ecf
Use util.inspect to log in node - fixes #1661
2017-11-29 16:53:00 +01:00
Stephan Hoyer
fad8a7286b
Support err as first argument for done callbacks in async tests
2017-11-29 16:50:08 +01:00
Stephan Hoyer
9b5afff52e
Support promise return in ospec
2017-11-29 16:49:54 +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