File: 0004-Makefile-Remove-code-coverage-during-test.patch

package info (click to toggle)
shaarli 0.12.1%2Bdfsg-8%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,392 kB
  • sloc: php: 27,786; javascript: 2,022; makefile: 106; xml: 62; sh: 29
file content (40 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: James Valleroy <jvalleroy@mailbox.org>
Date: Wed, 8 Jul 2020 16:18:40 -0400
Subject: Makefile: Remove code coverage during test

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>

Forwarded: not-needed
---
 Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 7f3f58f..1910419 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,6 @@ check_permissions:
 ##
 # PHPUnit
 # Runs unitary and functional tests
-# Generates an HTML coverage report if Xdebug is enabled
 #
 # See phpunit.xml for configuration
 # https://phpunit.de/manual/current/en/appendixes.configuration.html
@@ -63,13 +62,13 @@ test: translate
 	@echo "-------"
 	@echo "PHPUNIT"
 	@echo "-------"
-	@mkdir -p sandbox coverage
-	@phpunit --coverage-php coverage/main.cov --bootstrap tests/bootstrap.php --testsuite unit-tests
+	@mkdir -p sandbox
+	@phpunit --no-coverage --bootstrap tests/bootstrap.php --testsuite unit-tests
 
 locale_test_%:
 	@UT_LOCALE=$*.utf8 \
 		phpunit \
-		--coverage-php coverage/$(firstword $(subst _, ,$*)).cov \
+		--no-coverage \
 		--bootstrap tests/languages/bootstrap.php \
 		--testsuite language-$(firstword $(subst _, ,$*))