Skip to content

Commit 2d77cfe

Browse files
committed
dockerized, improved tests with coverage
1 parent e9d547e commit 2d77cfe

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/vendor
2-
tests/PHPJasper/*.jasper
2+
tests/*.jasper
3+
tests/codeCoverage
34

45
# IDE
56
## Eclipse

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '2'
2+
services:
3+
php:
4+
image: geekcom/phpjasper
5+
container_name: phpjasper
6+
volumes:
7+
- .:/var/www/app
8+
tty: true

phpunit.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="./tests/bootstrap.php"
2+
<phpunit bootstrap="vendor/autoload.php"
33
backupGlobals="false"
44
backupStaticAttributes="false"
55
colors="true"
@@ -21,4 +21,9 @@
2121
<directory>tests</directory>
2222
</testsuite>
2323
</testsuites>
24+
25+
<logging>
26+
<log type="coverage-html" target="tests/codeCoverage/html"
27+
lowUpperBound="50" highLowerBound="80" charset="UTF-8"/>
28+
</logging>
2429
</phpunit>
File renamed without changes.

tests/bootstrap.php

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)