mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Some clean-up ready for first push to GitHub
This commit is contained in:
		@@ -14,6 +14,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include <cstring>
 | 
					#include <cstring>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef __clang__
 | 
				
			||||||
 | 
					#pragma clang diagnostic push
 | 
				
			||||||
 | 
					#pragma clang diagnostic ignored "-Wpadded"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Catch {
 | 
					namespace Catch {
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    struct TeamCityReporter : StreamingReporterBase {
 | 
					    struct TeamCityReporter : StreamingReporterBase {
 | 
				
			||||||
@@ -132,15 +137,13 @@ namespace Catch {
 | 
				
			|||||||
            m_headerPrintedForThisSection = false;
 | 
					            m_headerPrintedForThisSection = false;
 | 
				
			||||||
            StreamingReporterBase::sectionStarting( sectionInfo );
 | 
					            StreamingReporterBase::sectionStarting( sectionInfo );
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
//        virtual void sectionEnded( SectionStats const& _sectionStats ) {
 | 
					 | 
				
			||||||
//            // !TBD
 | 
					 | 
				
			||||||
//        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        virtual void testCaseStarting( TestCaseInfo const& testInfo ) {
 | 
					        virtual void testCaseStarting( TestCaseInfo const& testInfo ) {
 | 
				
			||||||
            StreamingReporterBase::testCaseStarting( testInfo );
 | 
					            StreamingReporterBase::testCaseStarting( testInfo );
 | 
				
			||||||
            stream << "##teamcity[testStarted name='"
 | 
					            stream << "##teamcity[testStarted name='"
 | 
				
			||||||
                << escape( testInfo.name ) << "']\n";
 | 
					                << escape( testInfo.name ) << "']\n";
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
        virtual void testCaseEnded( TestCaseStats const& testCaseStats ) {
 | 
					        virtual void testCaseEnded( TestCaseStats const& testCaseStats ) {
 | 
				
			||||||
            StreamingReporterBase::testCaseEnded( testCaseStats );
 | 
					            StreamingReporterBase::testCaseEnded( testCaseStats );
 | 
				
			||||||
            if( !testCaseStats.stdOut.empty() )
 | 
					            if( !testCaseStats.stdOut.empty() )
 | 
				
			||||||
@@ -154,9 +157,6 @@ namespace Catch {
 | 
				
			|||||||
            stream << "##teamcity[testFinished name='"
 | 
					            stream << "##teamcity[testFinished name='"
 | 
				
			||||||
                << escape( testCaseStats.testInfo.name ) << "']\n";
 | 
					                << escape( testCaseStats.testInfo.name ) << "']\n";
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
//        virtual void testRunEnded( TestRunStats const& _testRunStats ) {
 | 
					 | 
				
			||||||
//            // !TBD
 | 
					 | 
				
			||||||
//        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private:
 | 
					    private:
 | 
				
			||||||
        void printSectionHeader( std::ostream& os ) {
 | 
					        void printSectionHeader( std::ostream& os ) {
 | 
				
			||||||
@@ -205,4 +205,8 @@ namespace Catch {
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
} // end namespace Catch
 | 
					} // end namespace Catch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef __clang__
 | 
				
			||||||
 | 
					#pragma clang diagnostic pop
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif // TWOBLUECUBES_CATCH_REPORTER_TEAMCITY_HPP_INCLUDED
 | 
					#endif // TWOBLUECUBES_CATCH_REPORTER_TEAMCITY_HPP_INCLUDED
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user