Changeset 62411 for trunk/Gruntfile.js
- Timestamp:
- 05/22/2026 08:22:56 PM (16 hours ago)
- File:
-
- 1 edited
-
trunk/Gruntfile.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r62258 r62411 116 116 'imagemin', 117 117 'jshint', 118 'qunit',119 118 'uglify', 120 119 'watch' … … 956 955 'tests/qunit/**/*.js', 957 956 '!tests/qunit/vendor/*', 958 '!tests/qunit/editor/**' 957 '!tests/qunit/qunit.js', 958 '!tests/qunit/playwright.config.js' 959 959 ], 960 960 options: grunt.file.readJSON( 'tests/qunit/.jshintrc' ) … … 1059 1059 } 1060 1060 } 1061 },1062 qunit: {1063 files: [1064 'tests/qunit/**/*.html',1065 '!tests/qunit/editor/**'1066 ]1067 1061 }, 1068 1062 phpunit: { … … 1598 1592 test: { 1599 1593 files: [ 1600 'tests/qunit/**', 1601 '!tests/qunit/editor/**' 1594 'tests/qunit/**' 1602 1595 ], 1603 1596 tasks: ['qunit'] … … 2221 2214 }); 2222 2215 2216 grunt.registerTask( 'qunit', 'Runs QUnit tests.', function() { 2217 var done = this.async(); 2218 grunt.util.spawn( { 2219 cmd: 'npx', 2220 args: [ 'playwright', 'test', '--config', 'tests/qunit/playwright.config.js' ], 2221 opts: { stdio: 'inherit' } 2222 }, function( error, result, code ) { 2223 if ( code !== 0 ) { 2224 grunt.fail.warn( 'QUnit tests failed.' ); 2225 } 2226 done(); 2227 } ); 2228 } ); 2229 2223 2230 grunt.registerTask( 'qunit:compiled', 'Runs QUnit tests on compiled as well as uncompiled scripts.', 2224 2231 ['build', 'copy:qunit', 'qunit']
Note: See TracChangeset
for help on using the changeset viewer.