Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Prepare and tweak testing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Omranic committed Jun 22, 2018
1 parent a587e49 commit 5404efa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ env:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""

cache:
directories:
- $HOME/.composer/cache

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
"Rinvex\\Bookings\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Rinvex\\Bookings\\Tests\\": "tests"
}
},
"config": {
"sort-packages": true,
"preferred-install": "dist",
Expand Down
7 changes: 5 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
<testsuites>
<testsuite name="Rinvex Bookings Unit Test Suite">
<directory>tests</directory>
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Rinvex Bookings Integration Test Suite">
<directory>tests/Integration</directory>
</testsuite>
</testsuites>
<filter>
Expand All @@ -26,7 +29,7 @@
<logging>
<log type="tap" target="build/report.tap" />
<log type="junit" target="build/report.junit.xml" />
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true" />
<log type="coverage-html" target="build/coverage" />
<log type="coverage-text" target="build/coverage.txt" />
<log type="coverage-clover" target="build/logs/clover.xml" />
</logging>
Expand Down
Empty file added tests/Integration/.gitkeep
Empty file.
Empty file added tests/Unit/.gitkeep
Empty file.

0 comments on commit 5404efa

Please sign in to comment.