Skip to content

Commit 561fdf6

Browse files
Tweaked test config
1 parent 6561c1e commit 561fdf6

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
run: composer bin phpunit update --no-interaction --no-progress
3636

3737
- name: Execute PHPUnit
38-
run: vendor/bin/phpunit --verbose
38+
run: vendor/bin/phpunit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.phpunit.result.cache
12
composer.lock
23
phpstan.neon
34
phpunit.xml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ psalm-show-info:
2323
test: phpunit phpstan-analyze psalm-analyze
2424

2525
clean:
26-
@rm -rf composer.lock vendor vendor-bin/*/composer.lock vendor-bin/*/vendor
26+
@rm -rf .phpunit.result.cache composer.lock vendor vendor-bin/*/composer.lock vendor-bin/*/vendor

phpunit.xml.dist

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
bootstrap="vendor/autoload.php"
12-
>
3+
backupStaticAttributes="false"
4+
beStrictAboutTestsThatDoNotTestAnything="true"
5+
beStrictAboutOutputDuringTests="true"
6+
bootstrap="vendor/autoload.php"
7+
colors="true"
8+
convertErrorsToExceptions="true"
9+
convertNoticesToExceptions="true"
10+
convertWarningsToExceptions="true"
11+
failOnRisky="true"
12+
failOnWarning="true"
13+
processIsolation="false"
14+
stopOnError="false"
15+
stopOnFailure="false"
16+
verbose="true"
17+
>
1318
<testsuites>
14-
<testsuite name="php-gitlab-api Test Suite">
15-
<directory>./test/Gitlab/</directory>
19+
<testsuite name="Test Suite">
20+
<directory suffix="Test.php">./test</directory>
1621
</testsuite>
1722
</testsuites>
18-
1923
<filter>
20-
<whitelist>
21-
<directory suffix=".php">./lib/Gitlab/</directory>
24+
<whitelist processUncoveredFilesFromWhitelist="true">
25+
<directory suffix=".php">./lib</directory>
2226
</whitelist>
2327
</filter>
2428
</phpunit>

0 commit comments

Comments
 (0)