Skip to content

Commit

Permalink
Enhancement: Split auto review tests from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 6, 2018
1 parent 7a70d1f commit a81df77
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- if [[ "$WITH_HIGHEST" == "true" ]]; then composer update; fi

script:
- vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml
- if [[ "$WITH_COVERAGE" == "true" ]]; then xdebug-enable; fi
- if [[ "$WITH_COVERAGE" == "true" ]]; then vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=build/logs/clover.xml; else vendor/bin/phpunit --configuration=test/Unit/phpunit.xml; fi
- if [[ "$WITH_COVERAGE" == "true" ]]; then xdebug-disable; fi
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ infection: vendor
vendor/bin/infection --min-covered-msi=80 --min-msi=80

test: vendor
vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml

vendor: composer.json composer.lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @see https://github.com/localheinz/json-printer
*/

namespace Localheinz\Json\Printer\Test\Unit;
namespace Localheinz\Json\Printer\Test\AutoReview;

use Localheinz\Test\Util\Helper;
use PHPUnit\Framework;
Expand Down
27 changes: 27 additions & 0 deletions test/AutoReview/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="../../vendor/autoload.php"
colors="true"
columns="max"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
verbose="true"
>
<testsuites>
<testsuite name="AutoReview Tests">
<directory>.</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit a81df77

Please sign in to comment.