Skip to content

Commit

Permalink
chore(template): update test stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Dec 31, 2019
1 parent 50b872b commit d8ccb9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/.travis.yml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ before_script:
- for P in src tests; do find $P -type f -name '*.php' -exec php -l {} \;; done

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
- composer test:cov

{% if codecov %}
after_success:
Expand Down
5 changes: 3 additions & 2 deletions resources/composer.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5"{% for pkg in dev %},
"phpunit/phpunit": "^5.7 || ^6.5" || ^7.5{% for pkg in dev %},
"{{pkg.name}}": "{{pkg.version}}"{% endfor %}

},
Expand All @@ -54,6 +54,7 @@
{%if type == 'project' %}
"@env": "php -r \"is_file('.env') || copy('.env.example', '.env');\"",
{% endif %}
"test": "vendor/bin/phpunit --coverage-text --coverage-clover coverage.xml"
"test": "phpunit",
"test:cov": "phpunit --coverage-text --coverage-clover coverage.xml --coverage-html vendor/cov"
}
}
1 change: 0 additions & 1 deletion resources/phpunit.xml.dist.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/bootstrap.php"
>
<testsuites>
Expand Down

0 comments on commit d8ccb9b

Please sign in to comment.