mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 10:11:34 +01:00 
			
		
		
		
	add codecov.yaml and update coverage flags
This commit is contained in:
		
							parent
							
								
									918af69383
								
							
						
					
					
						commit
						316ae9fd63
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		
							
								
								
									
										5
									
								
								codecov.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								codecov.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | ||||||
|  | ignore: | ||||||
|  |   - "test" | ||||||
|  | 
 | ||||||
|  | comment: | ||||||
|  |   require_changes: true | ||||||
|  | @ -65,6 +65,6 @@ doctest_discover_tests(GreeterTests) | ||||||
| # ---- code coverage ---- | # ---- code coverage ---- | ||||||
| 
 | 
 | ||||||
| if (ENABLE_TEST_COVERAGE) | if (ENABLE_TEST_COVERAGE) | ||||||
|   target_compile_options(Greeter PRIVATE -O0 -g -fprofile-arcs -ftest-coverage --coverage) |   target_compile_options(Greeter PUBLIC -O0 -g -fprofile-arcs -ftest-coverage) | ||||||
|   target_link_options(Greeter PUBLIC "--coverage") |   target_link_options(Greeter PUBLIC -fprofile-arcs -ftest-coverage) | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue