Support gcovr to generate coverage reports
The coveralls service is a great webservice, but like the testsuite it's better to have an alternative, which makes it possible to process it locally. This is faster and doesn't even require a full push iteration. gcovr is easy to get: pip install gcovr make test-coverage-report
This commit is contained in:
		
							parent
							
								
									787cebbc80
								
							
						
					
					
						commit
						b4c319350a
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -7,6 +7,7 @@ core | |||||||
| vgcore.* | vgcore.* | ||||||
| 
 | 
 | ||||||
| /docs/dunst.1 | /docs/dunst.1 | ||||||
|  | /docs/internal/coverage | ||||||
| /docs/internal/html | /docs/internal/html | ||||||
| /dunst | /dunst | ||||||
| /dunstify | /dunstify | ||||||
|  | |||||||
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							| @ -87,6 +87,15 @@ test-valgrind: test/test | |||||||
| test-coverage: CFLAGS += -fprofile-arcs -ftest-coverage -O0 | test-coverage: CFLAGS += -fprofile-arcs -ftest-coverage -O0 | ||||||
| test-coverage: test | test-coverage: test | ||||||
| 
 | 
 | ||||||
|  | test-coverage-report: test-coverage | ||||||
|  | 	mkdir -p docs/internal/coverage | ||||||
|  | 	gcovr \
 | ||||||
|  | 		-r . \
 | ||||||
|  | 		--exclude=test \
 | ||||||
|  | 		--html \
 | ||||||
|  | 		--html-details \
 | ||||||
|  | 		-o docs/internal/coverage/index.html | ||||||
|  | 
 | ||||||
| test/test: ${OBJ} ${TEST_OBJ} | test/test: ${OBJ} ${TEST_OBJ} | ||||||
| 	${CC} -o ${@} ${TEST_OBJ} ${OBJ} ${CFLAGS} ${LDFLAGS} | 	${CC} -o ${@} ${TEST_OBJ} ${OBJ} ${CFLAGS} ${LDFLAGS} | ||||||
| 
 | 
 | ||||||
| @ -122,6 +131,7 @@ clean-dunstify: | |||||||
| clean-doc: | clean-doc: | ||||||
| 	rm -f docs/dunst.1 | 	rm -f docs/dunst.1 | ||||||
| 	rm -fr docs/internal/html | 	rm -fr docs/internal/html | ||||||
|  | 	rm -fr docs/internal/coverage | ||||||
| 
 | 
 | ||||||
| clean-tests: | clean-tests: | ||||||
| 	rm -f test/test test/*.o | 	rm -f test/test test/*.o | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benedikt Heine
						Benedikt Heine