laravel-elixir-codeception icon indicating copy to clipboard operation
laravel-elixir-codeception copied to clipboard

Codeception watch task executes twice

Open martialc opened this issue 11 years ago • 0 comments

I work alone on a project, where I'm doing both frontend and backend development.

I launch gulp as follow :

gulp watch tdd

I've noticed that whenever I modify a php class in the "app" directory, codeception tdd executes twice (which of course, leads to a whole lot of problems). However, when I modify a test file, codeception tdd executes once, as expected.

I could track it down to this :

this.registerWatcher('codeception', [
    baseDir + '/**/*+(Test|Cept|Cest).php',
    'app/**/*.php'
], 'tdd');

If I change this by

this.registerWatcher('codeception', [
    'app/**/*.php'
], 'tdd');

this.registerWatcher('codeception', [
    baseDir + '/**/*+(Test|Cept|Cest).php'
], 'tdd');

Then everything happens as expected.

martialc avatar Jan 09 '15 10:01 martialc