From b4ee1b591c2ea9e9653ed92109de4d4270daf0ed Mon Sep 17 00:00:00 2001 From: sc0ttj Date: Tue, 10 Mar 2020 00:16:53 +0000 Subject: [PATCH] bumped to 1.0.11 --- README.md | 27 ++++++++++++++------------- package.json | 2 +- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index fd50711..2b6d20c 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ The following assertions are built into `tea`: - `assert` - `expect` - `should` (alias of expect) +- `t` #### Using `expect` @@ -223,7 +224,7 @@ test("test using assert, object syntax", () => { run() ``` -### Using `t` +#### Using `t` Usage: @@ -286,6 +287,18 @@ Options: ``` +### TAP output + +To show test results in [TAP](https://testanything.org/tap-version-13-specification.html) format, use `--format=tap` on the command-line (or `tea.reportFormat = 'tap'` if in the browser/DevTools). + +The TAP format is machine-readable, and you can pipe the results to other programs, to prettify it. + +These TAP prettifiers work OK with the TAP output of `tea`: + +- [tap-difflet](https://github.com/namuol/tap-difflet) +- [tap-diff](https://github.com/axross/tap-diff) +- [tap-nyan](https://github.com/calvinmetcalf/tap-nyan) + ### BDD style tests Tests can be grouped arbitrarily, using the `group` function. Example: @@ -361,18 +374,6 @@ The test results output will be indented appropriately, like so: grouped and indented test results

-## TAP output - -If you need your test results printed in [TAP](https://testanything.org/tap-version-13-specification.html) format, then use `--format=tap` or `tea.reportFormat = 'tap'`. - -The TAP format is machine-readable, and you can pipe the results to other programs, to process or prettify it. - -Here are some TAP prettifiers that work OK with the TAP output of `tea`: - -- [tap-difflet])(https://github.com/namuol/tap-difflet) - prettifier for TAP formatted test results, works with `tea` -- [tap-diff])(https://github.com/axross/tap-diff) - prettifier for TAP formatted test results, works with `tea` -- [tap-nyan])(https://github.com/calvinmetcalf/tap-nyan) - prettifier for TAP formatted test results, works with `tea` - ## Integration tests ### Running in a real browser diff --git a/package.json b/package.json index 7fce6d1..85fe74b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@scottjarvis/tea", - "version": "1.0.10", + "version": "1.0.11", "description": "Test Environment Application", "author": "sc0ttj", "license": "MIT",