Changeset 51016
- Timestamp:
- 05/25/2021 11:14:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r50929 r51016 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 } … … 1605 1598 1606 1599 // Testing tasks. 1607 grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax, external-http, and multisite tests.', function() { 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 1615 grunt.registerTask('qunit:compiled', 'Runs QUnit tests on compiled as well as uncompiled scripts.', 1616 ['build', 'copy:qunit', 'qunit']); 1617 1618 grunt.registerTask('test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit']); 1612 grunt.registerTask( 'qunit:compiled', 'Runs QUnit tests on compiled as well as uncompiled scripts.', 1613 ['build', 'copy:qunit', 'qunit'] 1614 ); 1615 1616 grunt.registerTask( 'test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit'] ); 1619 1617 1620 1618 grunt.registerTask( 'format:php', 'Runs the code formatter on changed files.', function() { … … 1622 1620 var flags = this.flags; 1623 1621 var args = changedFiles.php; 1622 1624 1623 args.unshift( 'format' ); 1624 1625 1625 grunt.util.spawn( { 1626 1626 cmd: 'composer',
Note: See TracChangeset
for help on using the changeset viewer.