mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Fix TAP protocol reporter
According to TAP protocol version 13, the comments after the test name only may contain Directives - # TODO or # SKIP. We should put the comment (aka suite name) on a separate line before the test. See http://testanything.org/tap-version-13-specification.html#directives
This commit is contained in:
		
				
					committed by
					
						
						Jozef Grajciar
					
				
			
			
				
	
			
			
			
						parent
						
							7f229b4ff1
						
					
				
				
					commit
					dd3d27de57
				
			@@ -42,9 +42,9 @@ namespace Catch {
 | 
				
			|||||||
        bool assertionEnded( AssertionStats const& _assertionStats ) override {
 | 
					        bool assertionEnded( AssertionStats const& _assertionStats ) override {
 | 
				
			||||||
            ++counter;
 | 
					            ++counter;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            stream << "# " << currentTestCaseInfo->name << std::endl;
 | 
				
			||||||
            AssertionPrinter printer( stream, _assertionStats, counter );
 | 
					            AssertionPrinter printer( stream, _assertionStats, counter );
 | 
				
			||||||
            printer.print();
 | 
					            printer.print();
 | 
				
			||||||
            stream << " # " << currentTestCaseInfo->name ;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            stream << std::endl;
 | 
					            stream << std::endl;
 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user