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

package info (click to toggle)
shaarli 0.14.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,612 kB
  • sloc: php: 30,001; javascript: 2,083; makefile: 139; xml: 69; python: 42; sh: 35
file content (30 lines) | stat: -rw-r--r-- 880 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
From: James Valleroy <jvalleroy@mailbox.org>
Date: Sat, 9 Dec 2023 07:36:40 -0500
Subject: Makefile: Remove code coverage during test

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

diff --git a/Makefile b/Makefile
index 3710210..357d411 100644
--- a/Makefile
+++ b/Makefile
@@ -72,13 +72,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 _, ,$*))