Skip to content

2.x: grunt improvements#43

Open
beporter wants to merge 3 commits intomasterfrom
f/grunt-improvements
Open

2.x: grunt improvements#43
beporter wants to merge 3 commits intomasterfrom
f/grunt-improvements

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 force-pushed the f/grunt-improvements branch from 992ee74 to f6df1c9 Compare January 26, 2015 14:51
@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

Comments