Commit graph

22 commits

Author SHA1 Message Date
Paul Beckingham
3313e1f6cc Updated copyright 2019-03-02 14:13:31 -05:00
Simon Ruderich
c7edf914e1 Always use https:// link for opensource.org
It was already used in a few places, make this consistent.
2018-05-14 01:00:23 -04:00
Paul Beckingham
216d4d63bc Copyright 2018 2018-05-13 23:30:21 -04:00
Paul Fenwick
3b46553f47 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
2018-05-13 23:24:57 -04:00
Paul Beckingham
88516acdaa Copyright update 2018-05-13 20:50:26 -04:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Renato Alves
52746e8504 TAP: Don't fail on errors during setUpClass 2015-07-23 17:42:41 +01:00
Renato Alves
ce378c8f62 TAP: When test description is undefined, don't include __main__ in output 2015-07-03 21:53:12 +01:00
Renato Alves
a3bbef3682 TAP: Show name of file containing the test(s)
In addition to the state of the test the description now includes the
location of the test, i.e. the filename that contains it.
Useful in central.tasktools.org.
2015-07-03 19:26:30 +01:00
Renato Alves
53f7786da5 Simpletap: Handle "Unexpected success" cases
When a test decorated with @expectedFailure unexpectedly passes, fail
that test until the decorator is removed.
2015-06-22 17:32:46 +01:00
Renato Alves
bd3cce7d4b simpletap: Show more information in expected failures 2015-06-11 23:35:07 +01:00
Renato Alves
1302e69d51 Expected failures are now treated as skipped tests
Before they were being treated as "passing" tests.
Since this might cause them to be silently ignored, classifying them
under "skipped" will ensure they won't go unnoticed.

Expected failures != skipped. The former will always be executed.
2015-05-25 18:15:31 +01:00
Renato Alves
cd216bd4fd simpletap - Add color to test state when running on tty 2015-03-12 20:49:50 +00:00
Renato Alves
ac4a5c6d62 simpletap - Include scenario for expected failures
* Expected failures are treated as "ok" followed by a report of what went wrong
2015-03-12 20:00:02 +00:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Renato Alves
18581a6ca4 Unittest - Avoid second exception on framework tracing error
* Prevents masking of the initial exception due to a second one.
2014-10-18 01:29:01 +01:00
Renato Alves
07cd033cbc Unittest - Readability and information improvements with test failures 2014-07-24 16:07:58 +01:00
Renato Alves
f39617a753 Unittest - Fix newlines should be interpreted in printed output 2014-07-24 13:10:44 +01:00
Renato Alves
3fd06257b7 Unittest - Buffer stdout/stderr until after test status is printed 2014-07-18 20:06:29 +01:00
Renato Alves
7cc4775060 Unittest - Properly comment output lines in TAP format 2014-07-15 15:56:26 +01:00
Renato Alves
d419fb9560 Unittest - Don't escape new-line characters in TAP output 2014-07-14 11:44:28 +01:00
Renato Alves
112d4bfb14 Improvement TW-1255
- #TW-1255 New testing framework (thanks to Renato Alves).

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-02-09 20:10:24 -05:00