10 #define ELPP_NO_CHECK_MACROS 15 #if defined(CATCH_CONFIG_RUNNER) 21 class CustomRunContext :
public RunContext
24 CustomRunContext( CustomRunContext
const& ) =
delete;
25 CustomRunContext & operator=( CustomRunContext
const& ) =
delete;
28 explicit CustomRunContext( IStreamingReporterPtr&& reporter,
IConfigPtr const&
cfg )
35 : CustomRunContext(
getRegistryHub().getReporterRegistry().create( reporter_type, cfg ), cfg )
40 explicit CustomRunContext( Catch::ConfigData
const & cfg,
std::string const & reporter_type =
"compact" )
41 : CustomRunContext( reporter_type,
IConfigPtr(
new Config( cfg ) ) )
47 void set_redirection(
bool on )
49 auto r =
dynamic_cast<Catch::CompactReporter *
>(&reporter());
51 r->m_reporterPrefs.shouldRedirectStdOut = on;
61 void invoke()
const override 66 TestCase test_case(
new invoker( test ),
67 TestCaseInfo( name, {}, {}, {}, {
"",0} )
69 return runTest( test_case );
75 #endif // CATCH_CONFIG_RUNNER def run_test(self, configuration=None, log_path=None)
GLuint const GLchar * name
GLsizei const GLchar *const * string
std::function< void(std::function< void()>)> invoker
typename::boost::move_detail::remove_reference< T >::type && move(T &&t) BOOST_NOEXCEPT
IRegistryHub const & getRegistryHub()
std::shared_ptr< IConfig const > IConfigPtr