open-lms-open-source/moodle-plugin-ci

Code coverage exclusions don't work on Moodle 3.3 and above

Closed this issue · 1 comments

It seems that (at least in v2), code coverage exclusions are not working in Moodle 3.3 and master.

I'm doing something like:

env:
 global:
  - PHPUNIT_IGNORE_PATHS=cli,db,settings.php,version.php

 matrix:
    # Moodle Master
  - PHPVER=7.0 DB=pgsql MOODLE_BRANCH=master
...
    # Moodle 3.2
  - PHPVER=5.6 DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE
...
    # Moodle 3.3
  - PHPVER=5.6 DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
...

before_install:
...
  - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2
...

install:
  - moodle-plugin-ci install

script:
...
  - moodle-plugin-ci phpunit --coverage-clover
...

after_script:
  - moodle-plugin-ci coveralls-upload
...

And only in MOODLE_32_STABLE runs are the PHPUNIT_IGNORE_PATHS files excluded.

I would assume it has to do with changes made in https://tracker.moodle.org/browse/MDL-55139

Thanks, fixed in 2.0.1