Commit graph

21 commits

Author SHA1 Message Date
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
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
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
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
cd3c1afca2 Readme: adjust the LOC count 2017-11-30 00:27:48 +01:00
Sage Gerard
78eeb2b365 feat(ospec): Allow custom reporters for CI reasons (#2019) (#2020) 2017-11-20 15:37:07 -08:00
Stephan Hoyer
b345e4f023 Support promise return in ospec 2017-08-31 19:31:08 +02: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 Gerardy
ee6d991e51 [ospec:docs] Document the fact that ospec doesn't work when installed globally 2017-01-22 10:43:48 +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
Leo Horie
b62663bdc1 ensure properties in arrays are tested #1497 2016-12-31 19:27:23 -05:00
Leo
50b8b498c5 bump ospec version 2016-12-07 18:39:21 -05:00
Leo Horie
249050e4c2 bump ospec version 2016-11-15 10:01:12 -05:00
Leo Horie
4dd66a7e65 don't send undefined body 2016-11-10 10:12:05 -05:00
Douglas Brown
d02a238bf0 💁 Adjust ospec bin def, add to README
Getting set up with ospec is deceptively simple, and adding just a bit
more documentation should help new users from falling into the trap of
overthinking the test config.  (I know that I ended up down a very
strange rabbit hole when pulling ospec into a project).

This also adjusts the bin definition in the package file so that we can
hopefully just use the `ospec` command instead of a folder ref.
2016-10-14 13:27:44 -04:00
Leo Horie
f0888ac7bd make spy decorator 2016-08-30 14:05:53 -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