Skip to content

Commit 723a9a4

Browse files
author
Spencer Rinehart
committed
Specify the testsuite directory in phpunit.xml.
This allows phpunit to be run without having to specify the path to the test suite. This is a nicety for users and can help make this play well if we hook it up to scrutinizer.
1 parent 442d647 commit 723a9a4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

build.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
exit(1);
1414
}
1515

16-
passthru('vendor/bin/phpunit --coverage-html coverage --coverage-clover clover.xml tests', $returnStatus);
16+
passthru('vendor/bin/phpunit --coverage-html coverage --coverage-clover clover.xml', $returnStatus);
1717
if ($returnStatus !== 0) {
1818
exit(1);
1919
}

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<phpunit colors="true" forceCoversAnnotation="true">
2+
<testsuite name="Unit Tests">
3+
<directory>./tests</directory>
4+
</testsuite>
25
<filter>
36
<whitelist>
47
<directory>src</directory>

0 commit comments

Comments
 (0)