mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +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
|
||||
(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:
|
||||
* Make sure all Sconstruct and .pro builds have debug symbols in release
|
||||
* 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
|
||||
- Add UnhandledExceptionCatcher to beast
|
||||
- Return EXIT_FAILURE on unhandled exception
|
||||
|
||||
- Finish unit tests and code for Validators
|
||||
* Document the command line options for the beast unit test framework
|
||||
- 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
|
||||
- Improved Mutex to track deadlocks
|
||||
- Work on KeyvaDB
|
||||
- Allow skipped/disabled unit tests and reporting.
|
||||
|
||||
|
||||
|
||||
David Feature:
|
||||
David Features:
|
||||
- override config items from command line
|
||||
- change config via RPC, this is for debugging
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
- 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
|
||||
{
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user