From f07089ffa390c02a81c1dd057329cd34797d5eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Wed, 25 Mar 2015 12:13:44 +0100 Subject: Test execution stats improvements --stats can have optional values: --stats=out prints all test timings to standard output, --stats= prints all test timings to a file in tab-separated format. Stats are now kept in vector to allow duplicated values. --- state.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'state.cpp') diff --git a/state.cpp b/state.cpp index 4ab59f7a..8168693b 100644 --- a/state.cpp +++ b/state.cpp @@ -31,7 +31,6 @@ #include #include #include "TestHelper.h" -#include "Stats.h" using namespace std; using namespace json_spirit; @@ -42,9 +41,6 @@ namespace dev { namespace test { void doStateTests(json_spirit::mValue& v, bool _fillin) { - if (Options::get().stats) - Listener::registerListener(Stats::get()); - for (auto& i: v.get_obj()) { std::cout << " " << i.first << "\n"; @@ -255,6 +251,7 @@ BOOST_AUTO_TEST_CASE(stRandom) string s = asString(dev::contents(path.string())); BOOST_REQUIRE_MESSAGE(s.length() > 0, "Content of " + path.string() + " is empty. Have you cloned the 'tests' repo branch develop and set ETHEREUM_TEST_PATH to its path?"); json_spirit::read_string(s, v); + test::Listener::notifySuiteStarted(path.filename().string()); dev::test::doStateTests(v, false); } catch (Exception const& _e) -- cgit v1.2.3