Improve TAP compliance in test suite

This allows tools like `prove` to operate on our test-suite, allowing us
to do things like run recently-failing tests first, randomising test
order, and fancier reporting options.

Changes made:

- TAP output always goes to STDOUT, never to STDERR
- Skipped tests signaled as `ok 1 # skip` as per standard
- Expected failures signaled as `not ok 1 # TODO` as per standard
- `.prove` added to .gitignore
This commit is contained in:
Paul Fenwick 2017-11-24 03:50:52 -05:00 committed by Paul Beckingham
parent 02140f1843
commit 5ec91026ed
3 changed files with 11 additions and 5 deletions

View file

@ -452,11 +452,12 @@ void UnitTest::skip (const std::string& text)
{
++_counter;
++_skipped;
std::cout << yellow ("skip")
std::cout << yellow ("ok")
<< " "
<< _counter
<< " - "
<< text
<< " # skip"
<< "\n";
}