The main test runner class. More...
#include <TestRunner.hpp>
Inherits TestRunnerBase.
Static Public Member Functions | |
static int | run (int argc, char *argv[], bool ignoreFirst=true, std::shared_ptr< Impl::TestReportGenerator > reportGenerator=std::shared_ptr< Impl::TestReportGenerator >(new Reporters::SurefireTestReportGenerator)) |
Run the test runner after parsing the supplied input arguments. More... | |
template<typename ... WriterItemT> | |
static int | run (int argc, char *argv[], bool ignoreFirst, std::shared_ptr< Impl::TestReportGenerator > reportGenerator, const WriterItemT &... writerItems) |
Run the test runner after parsing the supplied input arguments and using the supplied writers. More... | |
static int | run (ExecutionModel executionModel, const Resource::File &reportOutputFolder=Resource::File(), std::shared_ptr< Impl::TestReportGenerator > reportGenerator=std::shared_ptr< Impl::TestReportGenerator >(new Reporters::SurefireTestReportGenerator)) |
Run all the tests in the test runner. More... | |
template<typename ... WriterItemT> | |
static int | run (ExecutionModel executionModel, const Resource::File &reportOutputFolder, std::shared_ptr< Impl::TestReportGenerator > reportGenerator, const WriterItemT &... writerItems) |
Run the test runner after parsing the supplied input arguments and using the supplied writers. More... | |
The main test runner class.
The runner runs the registered test group class' test cases and produces a report at the end of execution.
If not explicitly initialised, the default execution model used is WorkerProcesses and the default concurrency level is one thread/process per available CPU logical core.
|
inlinestatic |
Run the test runner after parsing the supplied input arguments.
If not specified, the default concurrency level will be equal to the number of logical cores if the execution model is WorkerThreads or WorkerProcesses, and the logging will output to stdout.
argc | the number of arguments in argv |
argv | the command line arguments |
ignoreFirst | ignore the first command line argument (default == true) |
reportGenerator | the report generator to use if reporting is enabled (default == Surefire report generator) |
|
inlinestatic |
Run the test runner after parsing the supplied input arguments and using the supplied writers.
If not specified, the concurrency level will be equal to the number of logical cores if the execution model is WorkerThreads or WorkerProcesses.
The supplied report generator must have its output folder set.
WriterItemT | the writer item types |
argc | the number of arguments in argv |
argv | the command line arguments |
ignoreFirst | ignore the first command line argument |
reportGenerator | the report generator to use |
writerItems | the writer items to write the output to |
|
inlinestatic |
Run all the tests in the test runner.
The concurrency level will be equal to the number of logical cores if the execution model is WorkerThreads or WorkerProcesses, and the logging will output to stdout.
Test output reports will be written if a report output folder is specified.
executionModel | the execution model to run the tests |
reportOutputFolder | the output folder in which the reports will be written (default == empty == no reports written) |
reportGenerator | the report generator to use if reporting is enabled (default == Surefire report generator) |
|
inlinestatic |
Run the test runner after parsing the supplied input arguments and using the supplied writers.
If not specified, the concurrency level will be equal to the number of logical cores if the execution model is WorkerThreads or WorkerProcesses.
Test output reports will only be written if a report output folder is specified.
WriterItemT | the writer item types |
executionModel | the execution model to run the tests |
reportOutputFolder | the output folder in which the reports will be written (empty == no reports written) |
reportGenerator | the report generator to use if reporting is enabled |
writerItems | the writer items to write the output to |