Skip to content

Commit

Permalink
Merge branch 'coverage2' into 'main'
Browse files Browse the repository at this point in the history
chore(tests): Coverage reporting

See merge request behat-chrome/chrome-mink-driver!160
  • Loading branch information
xurizaemon committed Jul 8, 2023
2 parents 9486e14 + 98caef3 commit 965e77f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ workflow:
- composer install -o --prefer-dist --ansi --no-progress
- test -z "${AUTOSTART_XVFB}" || sed -i '27s#^#//#' vendor/mink/driver-testsuite/tests/Basic/BasicAuthTest.php
script:
- vendor/bin/phpunit --colors=always --log-junit junit.xml ${PHPUNIT_EXTRA_ARGS}
- vendor/bin/phpunit --colors=always --log-junit junit.xml
needs: []
artifacts:
paths:
Expand Down Expand Up @@ -84,8 +84,9 @@ Chrome + Coverage:
image: registry.gitlab.com/behat-chrome/docker-chrome-headless
stage: test
variables:
PHPUNIT_EXTRA_ARGS: --coverage-cobertura phpunit-coverage.xml --coverage-text
XDEBUG_MODE: coverage
script:
- vendor/bin/phpunit --colors=never --log-junit junit.xml --coverage-cobertura phpunit-coverage.xml --coverage-text
artifacts:
when: always
reports:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Changelog

## Unreleased
* Error handling for invalid form values (#140)
* Introduce code coverage in CI (!154)
* Introduce code coverage in CI (!154, !160)

## 2.9.2

Expand Down

0 comments on commit 965e77f

Please sign in to comment.