mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	adds flushes to the output stream of teamcity reporter, making the test output more responsive.
This commit is contained in:
		 Sebastian Grottel
					Sebastian Grottel
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							96c5de678d
						
					
				
				
					commit
					c1a91caf00
				
			| @@ -133,6 +133,7 @@ namespace Catch { | ||||
|                            << "]\n"; | ||||
|                 } | ||||
|             } | ||||
|             stream.flush(); | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
| @@ -146,6 +147,7 @@ namespace Catch { | ||||
|             StreamingReporterBase::testCaseStarting( testInfo ); | ||||
|             stream << "##teamcity[testStarted name='" | ||||
|                 << escape( testInfo.name ) << "']\n"; | ||||
|             stream.flush(); | ||||
|         } | ||||
|  | ||||
|         void testCaseEnded( TestCaseStats const& testCaseStats ) override { | ||||
| @@ -161,6 +163,7 @@ namespace Catch { | ||||
|             stream << "##teamcity[testFinished name='" | ||||
|                     << escape( testCaseStats.testInfo.name ) << "' duration='" | ||||
|                     << m_testTimer.getElapsedMilliseconds() << "']\n"; | ||||
|             stream.flush(); | ||||
|         } | ||||
|  | ||||
|     private: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user