mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Added xml and junit output
- also fixed a typo in a test name
This commit is contained in:
		@@ -15,6 +15,8 @@ cmdPath = sys.argv[1]
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
f = open( rawResultsPath, 'w' )
 | 
					f = open( rawResultsPath, 'w' )
 | 
				
			||||||
subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions" ], stdout=f, stderr=f )
 | 
					subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions" ], stdout=f, stderr=f )
 | 
				
			||||||
 | 
					subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "junit" ], stdout=f, stderr=f )
 | 
				
			||||||
 | 
					subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "xml" ], stdout=f, stderr=f )
 | 
				
			||||||
f.close()
 | 
					f.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rawFile = open( rawResultsPath, 'r' )
 | 
					rawFile = open( rawResultsPath, 'r' )
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -32,7 +32,7 @@ SCENARIO( storyName, "scenario name" )
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            // do this
 | 
					            // do this
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            THEN( "it should this this")
 | 
					            THEN( "it should do this")
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                REQUIRE( itDoesThis() );
 | 
					                REQUIRE( itDoesThis() );
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user