mirror of
https://github.com/danog/math.git
synced 2024-11-27 04:14:40 +01:00
Reorganized tests around two PHPUnit config files
This commit is contained in:
parent
1197dd2b81
commit
62fec07bfa
@ -12,10 +12,10 @@ before_script:
|
||||
- mkdir -p build/cov build/logs
|
||||
|
||||
script:
|
||||
- CALCULATOR=GMP vendor/bin/phpunit --configuration phpunit-dist.xml --coverage-php build/cov/coverage-GMP.cov
|
||||
- CALCULATOR=BCMath vendor/bin/phpunit --configuration phpunit-dist.xml --coverage-php build/cov/coverage-BCMath.cov
|
||||
- CALCULATOR=Native vendor/bin/phpunit --configuration phpunit-dist.xml --coverage-php build/cov/coverage-Native.cov
|
||||
- vendor/bin/phpunit --coverage-php build/cov/coverage-Detect.cov tests/CalculatorDetectTest.php
|
||||
- CALCULATOR=GMP vendor/bin/phpunit --configuration phpunit-main.xml --coverage-php build/cov/coverage-main-GMP.cov
|
||||
- CALCULATOR=BCMath vendor/bin/phpunit --configuration phpunit-main.xml --coverage-php build/cov/coverage-main-BCMath.cov
|
||||
- CALCULATOR=Native vendor/bin/phpunit --configuration phpunit-main.xml --coverage-php build/cov/coverage-main-Native.cov
|
||||
- vendor/bin/phpunit --configuration phpunit-detect.xml --coverage-php build/cov/coverage-detect.cov
|
||||
|
||||
after_script:
|
||||
- vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov
|
||||
|
13
phpunit-detect.xml
Normal file
13
phpunit-detect.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit colors="true" bootstrap="vendor/autoload.php">
|
||||
<testsuites>
|
||||
<testsuite>
|
||||
<file>tests/CalculatorDetectTest.php</file>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist>
|
||||
<directory>src</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit colors="true" bootstrap="phpunit-bootstrap.php">
|
||||
<phpunit colors="true" bootstrap="phpunit-main.php">
|
||||
<testsuites>
|
||||
<testsuite name="Brick\Math test suite">
|
||||
<testsuite>
|
||||
<directory>tests</directory>
|
||||
<exclude>tests/CalculatorDetectTest.php</exclude>
|
||||
</testsuite>
|
Loading…
Reference in New Issue
Block a user