laravel-elixir-codeception
laravel-elixir-codeception copied to clipboard
Codeception watch task executes twice
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.