// TestFramework.h -Testing features that I think I understand // // #ifndef TEST_FRAMEWORK_H #define TEST_FRAMEWORK_H #ifndef ZMENVIRONMENT_H #include "ZMutility/ZMenvironment.h" #endif #include "ErrorLogger/ELcontextSupplier.h" #include "ErrorLogger/ErrorLog.h" class ELadminstrator; #include "TestModule.h" #include // TestFramework class TestFramework { public: TestFramework(); ~TestFramework(); void setup(); void eventLoop(); int getRun(); int getEvent(); // RunEventContext class RunEventContext : public ELcontextSupplier { private: TestFramework &f; public: RunEventContext (TestFramework &ff); ZM_COVARIANT_TYPE(ELcontextSupplier *, RunEventContext *) clone() const; std::string context() const; std::string summaryContext() const; std::string fullContext() const; }; // RunEventContext end private: TestModule *step; ELdestControl logfile, //logs any severity to file "Test.log" part1log, //logs ELsuccess and higher to "part1.log" output, //prints ELwarning and higher to cout stats; //prints statistics of ELsuccess and higher to cout RunEventContext reContext; ELadministrator *logger; ErrorLog errlog; int Runs, Events; }; #endif // TEST_FRAMEWORK_H