mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Report summary for unit tests
This commit is contained in:
12
TODO.txt
12
TODO.txt
@@ -5,10 +5,6 @@ RIPPLE TODO
|
|||||||
Vinnie's List: Changes day to day, descending priority
|
Vinnie's List: Changes day to day, descending priority
|
||||||
(Items marked '*' can be handled by others.)
|
(Items marked '*' can be handled by others.)
|
||||||
|
|
||||||
- Allow skipped/disabled unit tests and reporting.
|
|
||||||
- Show summary for text output of unit test results
|
|
||||||
- Make ProofOfWorkTests manual since they aren't used
|
|
||||||
|
|
||||||
- Do something about the throw() reporting weaknesses:
|
- Do something about the throw() reporting weaknesses:
|
||||||
* Make sure all Sconstruct and .pro builds have debug symbols in release
|
* Make sure all Sconstruct and .pro builds have debug symbols in release
|
||||||
* Replace all throw with beast::Throw()
|
* Replace all throw with beast::Throw()
|
||||||
@@ -21,6 +17,7 @@ Vinnie's List: Changes day to day, descending priority
|
|||||||
- Implement getStackBacktrace for BEAST_BSD targets
|
- Implement getStackBacktrace for BEAST_BSD targets
|
||||||
- Add UnhandledExceptionCatcher to beast
|
- Add UnhandledExceptionCatcher to beast
|
||||||
- Return EXIT_FAILURE on unhandled exception
|
- Return EXIT_FAILURE on unhandled exception
|
||||||
|
|
||||||
- Finish unit tests and code for Validators
|
- Finish unit tests and code for Validators
|
||||||
* Document the command line options for the beast unit test framework
|
* Document the command line options for the beast unit test framework
|
||||||
- Tidy up all the loose files at the root of the repository
|
- Tidy up all the loose files at the root of the repository
|
||||||
@@ -29,15 +26,12 @@ Vinnie's List: Changes day to day, descending priority
|
|||||||
- Refactor Section code into ConfigFile
|
- Refactor Section code into ConfigFile
|
||||||
- Improved Mutex to track deadlocks
|
- Improved Mutex to track deadlocks
|
||||||
- Work on KeyvaDB
|
- Work on KeyvaDB
|
||||||
|
- Allow skipped/disabled unit tests and reporting.
|
||||||
|
|
||||||
|
David Features:
|
||||||
|
|
||||||
David Feature:
|
|
||||||
- override config items from command line
|
- override config items from command line
|
||||||
- change config via RPC, this is for debugging
|
- change config via RPC, this is for debugging
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
- Add convenience variadic functions to JobQueue that do the bind for you
|
- Add convenience variadic functions to JobQueue that do the bind for you
|
||||||
|
|||||||
@@ -206,6 +206,17 @@ static int runUnitTests (String const& whichTests, String const& format)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
UnitTests::Results const& r (tr.getResults ());
|
||||||
|
|
||||||
|
String s;
|
||||||
|
|
||||||
|
s << "Summary: " <<
|
||||||
|
String (r.suites.size ()) << " suites, " <<
|
||||||
|
String (r.cases) << " cases, " <<
|
||||||
|
String (r.tests) << " tests, " <<
|
||||||
|
String (r.failures) << " failure" << ((r.failures != 1) ? "s" : "") << ".";
|
||||||
|
|
||||||
|
tr.logMessage (s);
|
||||||
}
|
}
|
||||||
|
|
||||||
return tr.anyTestsFailed () ? EXIT_FAILURE : EXIT_SUCCESS;
|
return tr.anyTestsFailed () ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user