From 674274ed06dfdf9488e7f3bc9e3b45b9f7f4fb18 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 28 May 2010 19:23:45 +0000 Subject: More myriad testing and unit test features, not unit tests that may take a while are welcome to provide progress info with some builtin functions. The Bu::Archive class now throws an exception if reading is interrupted by EOS --- src/unitsuite.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/unitsuite.h') diff --git a/src/unitsuite.h b/src/unitsuite.h index ddd3835..475ee48 100644 --- a/src/unitsuite.h +++ b/src/unitsuite.h @@ -96,6 +96,11 @@ namespace Bu void add( Test fTest, const Bu::FString &sName, Expect e=expectPass ); void setName( const FString &sName ); + void dispProgress(); + void setStepCount( int iSteps ); + void incProgress( int iAmnt = 1 ); + void setProgress( int iAmnt ); + private: int onListCases( Bu::Array aParam ); @@ -116,6 +121,9 @@ namespace Bu typedef Bu::List StrList; StrList lFileCleanup; int iNameWidth; + int iStepCount; + int iProgress; + time_t tLastUpdate; }; Bu::Formatter &operator<<( Bu::Formatter &f, const Bu::UnitSuite::Expect &e ); -- cgit v1.2.3