Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.x: grunt improvements #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

2.x: grunt improvements #43

wants to merge 3 commits into from

Conversation

beporter
Copy link
Contributor

⚠️ WIP experiments for "properly" executing php unit tests via grunt file watcher. Read commit messages for details on the line of thinking. Makes #19 obsolete.

The PHP test runner should really be a MultiTask so it fires tests sequentially (they clobber each other inside the VM otherwise.) This would also allow us to have the individual filenames available in the grunt task for watching php files instead of having to register an event watcher using `grunt.event.on()`.
So the basic idea here is that instead of binding a hidden `grunt.even.on('watch)` event, we could register a multiTask directly, and loop over the supplied filenames.

The problem seems to be that grunt-contrib-watch doesn't expect to hand off to a multiTask, so things don't work correctly. There seems to be an approach for handling this kind of case laid out here though: https://www.npmjs.com/package/grunt-contrib-watch#compiling-files-as-needed

Needs more experimentation.
@beporter beporter changed the title F/grunt improvements 2.x: grunt improvements Jan 28, 2015
@beporter beporter added the 2.x label Jan 28, 2015
@beporter
Copy link
Contributor Author

❗ This PR is now targeting the wrong branch. It needs to be recreated to target cake-2.x now that master is based on 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant