Make WordPress Core

Changeset 25178


Ignore:
Timestamp:
08/30/2013 04:06:34 AM (11 years ago)
Author:
nacin
Message:

Add grunt test task for QUnit tests.

props kadamwhite.
see #25096.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r25173 r25178  
    5454            }
    5555        },
     56        qunit: {
     57            files: ['tests/qunit/**/*.html']
     58        },
    5659        uglify: {
    5760            core: {
     
    105108                    interval: 2000
    106109                }
     110            },
     111            test: {
     112                files: ['tests/qunit/**'],
     113                tasks: ['qunit']
    107114            }
    108115        }
     
    113120    grunt.loadNpmTasks('grunt-contrib-copy');
    114121    grunt.loadNpmTasks('grunt-contrib-cssmin');
     122    grunt.loadNpmTasks('grunt-contrib-qunit');
    115123    grunt.loadNpmTasks('grunt-contrib-uglify');
    116124    grunt.loadNpmTasks('grunt-contrib-watch');
     
    119127    grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core',
    120128        'uglify:core', 'uglify:tinymce']);
     129
     130    // Testing task.
     131    grunt.registerTask('test', ['qunit']);
    121132
    122133    // Default task.
  • trunk/package.json

    r25001 r25178  
    1414    "grunt-contrib-copy": "~0.4.1",
    1515    "grunt-contrib-cssmin": "~0.6.1",
     16    "grunt-contrib-qunit": "~0.2.2",
    1617    "grunt-contrib-uglify": "~0.2.2",
    1718    "grunt-contrib-watch": "~0.5.1"
Note: See TracChangeset for help on using the changeset viewer.