Ticket #53015: 53015.diff
File 53015.diff, 1.6 KB (added by , 4 years ago) |
---|
-
Gruntfile.js
665 665 }, 666 666 phpunit: { 667 667 'default': { 668 cmd: 'phpunit',669 668 args: ['--verbose', '-c', 'phpunit.xml.dist'] 670 669 }, 671 670 ajax: { 672 cmd: 'phpunit',673 671 args: ['--verbose', '-c', 'phpunit.xml.dist', '--group', 'ajax'] 674 672 }, 675 673 multisite: { 676 cmd: 'phpunit',677 674 args: ['--verbose', '-c', 'tests/phpunit/multisite.xml'] 678 675 }, 679 676 'ms-ajax': { 680 cmd: 'phpunit',681 677 args: ['--verbose', '-c', 'tests/phpunit/multisite.xml', '--group', 'ajax'] 682 678 }, 683 679 'ms-files': { 684 cmd: 'phpunit',685 680 args: ['--verbose', '-c', 'tests/phpunit/multisite.xml', '--group', 'ms-files'] 686 681 }, 687 682 'external-http': { 688 cmd: 'phpunit',689 683 args: ['--verbose', '-c', 'phpunit.xml.dist', '--group', 'external-http'] 690 684 }, 691 685 'restapi-jsclient': { 692 cmd: 'phpunit',693 686 args: ['--verbose', '-c', 'phpunit.xml.dist', '--group', 'restapi-jsclient'] 694 687 } 695 688 }, … … 1605 1598 1606 1599 // Testing tasks. 1607 1600 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 1608 1605 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' } 1612 1609 }, this.async()); 1613 1610 }); 1614 1611