diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2015-03-25 19:13:44 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2015-03-25 19:13:44 +0800 |
commit | f07089ffa390c02a81c1dd057329cd34797d5eec (patch) | |
tree | ddb3ddf0b2c97f6254d3ca9e2495493963697658 /TestHelper.h | |
parent | 0b476774a2710169b1956a2a4c85aaf191b22f5c (diff) | |
download | dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.tar.gz dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.tar.zst dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.zip |
Test execution stats improvements
--stats can have optional values:
--stats=out prints all test timings to standard output,
--stats=<filename> prints all test timings to a file in tab-separated format.
Stats are now kept in vector to allow duplicated values.
Diffstat (limited to 'TestHelper.h')
-rw-r--r-- | TestHelper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TestHelper.h b/TestHelper.h index ade20f5e..05e01792 100644 --- a/TestHelper.h +++ b/TestHelper.h @@ -164,7 +164,7 @@ public: bool vmtrace = false; ///< Create EVM execution tracer // TODO: Link with log verbosity? bool fillTests = false; ///< Create JSON test files from execution results bool stats = false; ///< Execution time stats - bool statsFull = false; ///< Output full stats - execution times for every test + std::string statsOutFile; ///< Stats output file. "out" for standard output /// Test selection /// @{ @@ -191,10 +191,12 @@ class Listener public: virtual ~Listener() = default; + virtual void suiteStarted(std::string const&) {} virtual void testStarted(std::string const& _name) = 0; virtual void testFinished() = 0; static void registerListener(Listener& _listener); + static void notifySuiteStarted(std::string const& _name); static void notifyTestStarted(std::string const& _name); static void notifyTestFinished(); |