diff options
author | Mike Buland <eichlan@xagasoft.com> | 2023-08-08 16:33:38 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2023-08-08 16:33:38 -0700 |
commit | c7e1277ecaf40c6d8ee945418a306f5b15189b97 (patch) | |
tree | 05a04473ffe90a76a4e7dd170c221141fea87b7e /src/unit | |
parent | 7c36f58654f1b238d1b416927c9485a151216b1b (diff) | |
download | libbu++-c7e1277ecaf40c6d8ee945418a306f5b15189b97.tar.gz libbu++-c7e1277ecaf40c6d8ee945418a306f5b15189b97.tar.bz2 libbu++-c7e1277ecaf40c6d8ee945418a306f5b15189b97.tar.xz libbu++-c7e1277ecaf40c6d8ee945418a306f5b15189b97.zip |
Unit test augmentations and harness.
Added some features to the mkunit program, including cleanup routine
support. Added reporting modes for the UnitSuite class, and it can now
generate machine readable reports. Added a new program, rununits that
runs all unit tests and generates a synopsis of what you really care
about at the end, issues!
Diffstat (limited to 'src/unit')
-rw-r--r-- | src/unit/file.unit | 5 | ||||
-rw-r--r-- | src/unit/xml.unit | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/unit/file.unit b/src/unit/file.unit index ee69995..b8cb73f 100644 --- a/src/unit/file.unit +++ b/src/unit/file.unit | |||
@@ -14,6 +14,11 @@ | |||
14 | 14 | ||
15 | suite File | 15 | suite File |
16 | { | 16 | { |
17 | cleanup | ||
18 | { | ||
19 | unlink("testfile1"); | ||
20 | } | ||
21 | |||
17 | test writeFull | 22 | test writeFull |
18 | { | 23 | { |
19 | Bu::File sf("testfile1", Bu::File::WriteNew ); | 24 | Bu::File sf("testfile1", Bu::File::WriteNew ); |
diff --git a/src/unit/xml.unit b/src/unit/xml.unit index 0d62b8b..21757cb 100644 --- a/src/unit/xml.unit +++ b/src/unit/xml.unit | |||
@@ -12,10 +12,4 @@ | |||
12 | 12 | ||
13 | suite Xml | 13 | suite Xml |
14 | { | 14 | { |
15 | test declaration | ||
16 | { | ||
17 | Bu::String sXml("<?xml ?> <hi />"); | ||
18 | Bu::MemBuf buf( sXml ); | ||
19 | Bu::XmlReader xr( buf ); | ||
20 | } | ||
21 | } | 15 | } |