mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	Make verboseconsole the default reporter.
This commit is contained in:
		
							parent
							
								
									b928cca54c
								
							
						
					
					
						commit
						4594ce77b0
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		|  | @ -10,7 +10,7 @@ target_include_directories(Catch2 INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||||||
| add_library(Catch2::Catch2 ALIAS Catch2) | add_library(Catch2::Catch2 ALIAS Catch2) | ||||||
| include(Catch) | include(Catch) | ||||||
| 
 | 
 | ||||||
| set(CATCH_EXTRA_ARGS "-r usefulconsole" CACHE STRING "Extra arguments for catch2 test suites.") | set(CATCH_EXTRA_ARGS "" CACHE STRING "Extra arguments for catch2 test suites.") | ||||||
| 
 | 
 | ||||||
| add_library(test_common INTERFACE) | add_library(test_common INTERFACE) | ||||||
| target_compile_definitions(test_common INTERFACE TEST_DATA_DIR=R"\(${TEST_DATA_DIR}\)" CATCH_CONFIG_FAST_COMPILE) | target_compile_definitions(test_common INTERFACE TEST_DATA_DIR=R"\(${TEST_DATA_DIR}\)" CATCH_CONFIG_FAST_COMPILE) | ||||||
|  |  | ||||||
|  | @ -3,6 +3,7 @@ | ||||||
| 
 | 
 | ||||||
| #define CATCH_CONFIG_EXTERNAL_INTERFACES | #define CATCH_CONFIG_EXTERNAL_INTERFACES | ||||||
| #define CATCH_CONFIG_MAIN | #define CATCH_CONFIG_MAIN | ||||||
|  | #define CATCH_CONFIG_DEFAULT_REPORTER "verboseconsole" | ||||||
| #include <catch2/catch.hpp> | #include <catch2/catch.hpp> | ||||||
| 
 | 
 | ||||||
| namespace Catch { | namespace Catch { | ||||||
|  | @ -45,7 +46,9 @@ struct VerboseConsoleReporter : public ConsoleReporter { | ||||||
|         ConsoleReporter::testCaseEnded(stats); |         ConsoleReporter::testCaseEnded(stats); | ||||||
|     } |     } | ||||||
| }; | }; | ||||||
|  | 
 | ||||||
| CATCH_REGISTER_REPORTER( "verboseconsole", VerboseConsoleReporter ) | CATCH_REGISTER_REPORTER( "verboseconsole", VerboseConsoleReporter ) | ||||||
| } | 
 | ||||||
|  | } // namespace Catch
 | ||||||
| 
 | 
 | ||||||
| #endif // CATCH_MAIN
 | #endif // CATCH_MAIN
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros