Open manojmalik20 opened 3 years ago
Hi @manojmalik20, you need to define IGNORE_*
at installing step, they don't have effect at actual test running step. Did you try quoting the path?
PHPUNIT_IGNORE_PATHS: 'tests/integration'
Hi @manojmalik20, you need to define
IGNORE_*
at installing step, they don't have effect at actual test running step. Did you try quoting the path?
Defining the variables at installing step didn't work either and I tried quoting the path also, still didn't work.
Can you share the link to the CI report where you tested this ignore param?
Right now, the repo is private and we are planning to make it public in a few days. I can share the link with you after that.
Here is the link for a workflow run. https://github.com/Brightscout/mod_mattermost/actions/runs/1258282057
@kabalin Did you get a chance to look at the link?
Hi @manojmalik20, yeah, phpunit does not respect *_IGNORE_PATHS
at all at the moment. As workaround you need either custom phpunit.xml
that would filter directory you need to exclude or run vendor/bin/phpunit
directly as separate step (with --filter
param to fetch only testcases you need).
Hello!
I am using moodle-plugin-ci in a Moodle plugin and want to ignore some PHPUnit tests from running in the CI. I tried using
IGNORE_PATHS
,PHPUNIT_IGNORE_PATHS
,IGNORE_NAMES
,PHPUNIT_IGNORE_NAMES
but nothing seems to work. I even tried to use these variables in the env for onlyphpunit
command instead of defining them while installingmoodle-plugin-ci
but that didn't work also. I am using Github actions and here are some examples I tried in my yml file.I've tried several paths too like
But nothing seems to work. I would really appreciate some help on this.
Thanks,
Manoj