Make WordPress Core

Ticket #53015: 53015.diff

File 53015.diff, 1.6 KB (added by ocean90, 4 years ago)
  • Gruntfile.js

     
    665665                },
    666666                phpunit: {
    667667                        'default': {
    668                                 cmd: 'phpunit',
    669668                                args: ['--verbose', '-c', 'phpunit.xml.dist']
    670669                        },
    671670                        ajax: {
    672                                 cmd: 'phpunit',
    673671                                args: ['--verbose', '-c', 'phpunit.xml.dist', '--group', 'ajax']
    674672                        },
    675673                        multisite: {
    676                                 cmd: 'phpunit',
    677674                                args: ['--verbose', '-c', 'tests/phpunit/multisite.xml']
    678675                        },
    679676                        'ms-ajax': {
    680                                 cmd: 'phpunit',
    681677                                args: ['--verbose', '-c', 'tests/phpunit/multisite.xml', '--group', 'ajax']
    682678                        },
    683679                        'ms-files': {
    684                                 cmd: 'phpunit',
    685680                                args: ['--verbose', '-c', 'tests/phpunit/multisite.xml', '--group', 'ms-files']
    686681                        },
    687682                        'external-http': {
    688                                 cmd: 'phpunit',
    689683                                args: ['--verbose', '-c', 'phpunit.xml.dist', '--group', 'external-http']
    690684                        },
    691685                        'restapi-jsclient': {
    692                                 cmd: 'phpunit',
    693686                                args: ['--verbose', '-c', 'phpunit.xml.dist', '--group', 'restapi-jsclient']
    694687                        }
    695688                },
     
    16051598
    16061599        // Testing tasks.
    16071600        grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax, external-http, and multisite tests.', function() {
     1601                var args = phpUnitWatchGroup ? this.data.args.concat( [ '--group', phpUnitWatchGroup ] ) : this.data.args;
     1602
     1603                args.unshift( 'test', '--' );
     1604
    16081605                grunt.util.spawn({
    1609                         cmd: this.data.cmd,
    1610                         args: phpUnitWatchGroup ? this.data.args.concat( [ '--group', phpUnitWatchGroup ] ) : this.data.args,
    1611                         opts: {stdio: 'inherit'}
     1606                        cmd: 'composer',
     1607                        args: args,
     1608                        opts: { stdio: 'inherit' }
    16121609                }, this.async());
    16131610        });
    16141611