Skip to content

Codeception watch task executes twice #2

@martialc

Description

@martialc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions