mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Add example for TeamCity reporter and refer to it
Prevent warnings - gnu: -Wcomment: multi-line comment - clang: -Wweak-vtables 'class' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit - clang: -Winconsistent-missing-override: 'method' overrides a member function but is not marked 'override' - MSVC: C4702: unreachable code
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							f4881f172a
						
					
				
				
					commit
					558bbe7d24
				
			@@ -3,12 +3,15 @@
 | 
			
		||||
 | 
			
		||||
## Already available
 | 
			
		||||
 | 
			
		||||
- Catch main: [Catch-provided main](../examples/000-CatchMain.cpp)
 | 
			
		||||
- Test Case: [Single-file](../examples/010-TestCase.cpp)
 | 
			
		||||
- Test Case: [Multiple-file 1](../examples/020-TestCase-1.cpp), [2](../examples/020-TestCase-2.cpp)
 | 
			
		||||
- Assertion: [REQUIRE, CHECK](../examples/030-Asn-Require-Check.cpp)
 | 
			
		||||
- Fixture: [Sections](../examples/100-Fix-Section.cpp)
 | 
			
		||||
- Fixture: [Class-based fixtures](../examples/110-Fix-ClassFixture.cpp)
 | 
			
		||||
- BDD: [SCENARIO, GIVEN, WHEN, THEN](../examples/120-Bdd-ScenarioGivenWhenThen.cpp)
 | 
			
		||||
- Report: [Catch-provided main](../examples/200-Rpt-CatchMain.cpp)
 | 
			
		||||
- Report: [TeamCity reporter](../examples/207-Rpt-TeamCityReporter.cpp)
 | 
			
		||||
- Listener: [Listeners](../examples/210-Evt-EventListeners.cpp)
 | 
			
		||||
- Configuration: [Provide your own output streams](../examples/231-Cfg-OutputStreams.cpp)
 | 
			
		||||
 | 
			
		||||
@@ -27,7 +30,10 @@
 | 
			
		||||
- Logging: [FAIL, FAIL_CHECK - Issue message and force failure/continue](../examples/170-Log-Fail.cpp)
 | 
			
		||||
- Logging: [SUCCEED - Issue message and continue](../examples/180-Log-Succeed.cpp)
 | 
			
		||||
- Report: [User-defined type](../examples/190-Rpt-ReportUserDefinedType.cpp)
 | 
			
		||||
- Report: [Reporter](../examples/200-Rpt-UserDefinedReporter.cpp)
 | 
			
		||||
- Report: [User-defined reporter](../examples/202-Rpt-UserDefinedReporter.cpp)
 | 
			
		||||
- Report: [Automake reporter](../examples/205-Rpt-AutomakeReporter.cpp)
 | 
			
		||||
- Report: [TAP reporter](../examples/206-Rpt-TapReporter.cpp)
 | 
			
		||||
- Report: [Multiple reporter](../examples/208-Rpt-MultipleReporters.cpp)
 | 
			
		||||
- Configuration: [Provide your own main()](../examples/220-Cfg-OwnMain.cpp)
 | 
			
		||||
- Configuration: [Compile-time configuration](../examples/230-Cfg-CompileTimeConfiguration.cpp)
 | 
			
		||||
- Configuration: [Run-time configuration](../examples/240-Cfg-RunTimeConfiguration.cpp)
 | 
			
		||||
 
 | 
			
		||||
@@ -25,8 +25,8 @@ Because of the way the junit format is structured the run must complete before a
 | 
			
		||||
There are a few additional reporters, for specific build systems, in the Catch repository (in `include\reporters`) which you can `#include` in your project if you would like to make use of them.
 | 
			
		||||
Do this in one source file - the same one you have `CATCH_CONFIG_MAIN` or `CATCH_CONFIG_RUNNER`.
 | 
			
		||||
 | 
			
		||||
* `teamcity` writes the native, streaming, format that [TeamCity](https://www.jetbrains.com/teamcity/) understands.
 | 
			
		||||
Use this when building as part of a TeamCity build to see results as they happen.
 | 
			
		||||
* `teamcity` writes the native, streaming, format that [TeamCity](https://www.jetbrains.com/teamcity/) understands. 
 | 
			
		||||
Use this when building as part of a TeamCity build to see results as they happen ([code example](../examples/207-Rpt-TeamCityReporter.cpp)).
 | 
			
		||||
* `tap` writes in the TAP ([Test Anything Protocol](https://en.wikipedia.org/wiki/Test_Anything_Protocol)) format.
 | 
			
		||||
* `automake` writes in a format that correspond to [automake  .trs](https://www.gnu.org/software/automake/manual/html_node/Log-files-generation-and-test-results-recording.html) files
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user