Make WordPress Core

Ticket #42282: 42282.diff

File 42282.diff, 746 bytes (added by iandunn, 8 years ago)

Rough proof of concept

  • Gruntfile.js

    diff --git Gruntfile.js Gruntfile.js
    index e3b06c5a60..c66407c49f 100644
    module.exports = function(grunt) { 
    742742                                        '!tests/qunit/editor/**'
    743743                                ],
    744744                                tasks: ['qunit']
     745                        },
     746                        phpunit: {
     747                                files: [
     748                                        SOURCE_DIR + 'wp-admin/includes/*.php'
     749                                ],
     750                                tasks: [ 'phpunit:default' ]
    745751                        }
    746752                }
    747753        });
    module.exports = function(grunt) { 
    945951        grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax, external-http, and multisite tests.', function() {
    946952                grunt.util.spawn({
    947953                        cmd: this.data.cmd,
    948                         args: this.data.args,
     954                        args: this.data.args.concat( [ '--group', 'community-events' ] ),
    949955                        opts: {stdio: 'inherit'}
    950956                }, this.async());
    951957        });