Make WordPress Core

Ticket #25781: 25781.5.diff

File 25781.5.diff, 1.0 KB (added by nacin, 12 years ago)
  • Gruntfile.js

     
    225225                        }
    226226                },
    227227                qunit: {
    228                         files: ['tests/qunit/**/*.html']
     228                        files: ['tests/qunit/index.html']
    229229                },
    230230                phpunit: {
    231231                        'default': {
     
    371371                }, this.async());
    372372        });
    373373
    374         grunt.registerTask('qunit:compiled', 'Runs QUnit tests on compiled as well as uncompiled scripts.',
    375                 ['build', 'copy:qunit', 'qunit']);
    376         grunt.registerTask('test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit']);
     374        grunt.registerTask('qunit:compiled', 'Runs QUnit tests on compiled as well as uncompiled scripts.', function() {
     375                grunt.task.run('build');
     376                grunt.task.run('copy:qunit');
     377                grunt.config(['qunit', 'files'], ['tests/qunit/compiled.html']);
     378                grunt.task.run('qunit');
     379        });
     380        grunt.registerTask('test', 'Runs all QUnit and PHPUnit tasks.', ['qunit', 'qunit:compiled', 'phpunit']);
    377381
    378382        // Default task.
    379383        grunt.registerTask('default', ['build']);