mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	Added benchmark support to MultiReporters
- otherwise benchmarks are not reported if multiple reporters (usually reporter + listener(s)) are used
This commit is contained in:
		| @@ -28,6 +28,14 @@ namespace Catch { | ||||
|             reporter->noMatchingTestCases( spec ); | ||||
|     } | ||||
|  | ||||
|     void MultipleReporters::benchmarkStarting( BenchmarkInfo const& benchmarkInfo ) { | ||||
|         for( auto const& reporter : m_reporters ) | ||||
|             reporter->benchmarkStarting( benchmarkInfo ); | ||||
|     } | ||||
|     void MultipleReporters::benchmarkEnded( BenchmarkStats const& benchmarkStats ) { | ||||
|         for( auto const& reporter : m_reporters ) | ||||
|             reporter->benchmarkEnded( benchmarkStats ); | ||||
|     } | ||||
|  | ||||
|     void MultipleReporters::testRunStarting( TestRunInfo const& testRunInfo ) { | ||||
|         for( auto const& reporter : m_reporters ) | ||||
|   | ||||
| @@ -26,6 +26,9 @@ namespace Catch { | ||||
|  | ||||
|         static std::set<Verbosity> getSupportedVerbosities(); | ||||
|  | ||||
|         void benchmarkStarting( BenchmarkInfo const& benchmarkInfo ) override; | ||||
|         void benchmarkEnded( BenchmarkStats const& benchmarkStats ) override; | ||||
|  | ||||
|         void testRunStarting( TestRunInfo const& testRunInfo ) override; | ||||
|         void testGroupStarting( GroupInfo const& groupInfo ) override; | ||||
|         void testCaseStarting( TestCaseInfo const& testInfo ) override; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash