Skip to content

Commit

Permalink
Merge pull request #3 from young-steveo/move-coverage
Browse files Browse the repository at this point in the history
Move test coverage artifacts.
  • Loading branch information
young-steveo authored Jun 3, 2023
2 parents 3c771bb + 7dd0996 commit a2058fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
.phpunit.cache

/vendor/
/coverage/
/tests/.coverage/
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"cs-check": "bash contrib/cs-check",
"cs-fix": "phpcbf --colors --standard=./contrib/phpcs-ruleset.xml",
"phpstan": "bash contrib/phpstan",
"phpunit": "phpunit --colors=always --coverage-html=coverage"
"phpunit": "phpunit --colors=always --coverage-html=tests/.coverage"
}
}
4 changes: 2 additions & 2 deletions contrib/cs-check
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# note: expected to be called by composer which adds vendor/bin to the path

echo "Checking PSR-12 standard"
phpcs --standard=./contrib/phpcs-ruleset.xml
phpcs --standard=./contrib/phpcs-ruleset.xml --ignore=./tests/.coverage/*
if [ $? != 0 ]
then
cat <<EOF
Expand All @@ -21,4 +21,4 @@ phpcs failed.
EOF
exit 1
fi
fi
4 changes: 3 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ parameters:
level: 9
paths:
- src
- tests
- tests
excludePaths:
- tests/.coverage/*

0 comments on commit a2058fb

Please sign in to comment.