From c7e1277ecaf40c6d8ee945418a306f5b15189b97 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 8 Aug 2023 16:33:38 -0700 Subject: 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! --- src/unit/file.unit | 5 +++++ src/unit/xml.unit | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/unit') 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 @@ suite File { + cleanup + { + unlink("testfile1"); + } + test writeFull { 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 @@ suite Xml { - test declaration - { - Bu::String sXml(" "); - Bu::MemBuf buf( sXml ); - Bu::XmlReader xr( buf ); - } } -- cgit v1.2.3