Add task for running single test

This commit is contained in:
Claudiu Lodromanean 2017-03-10 13:41:40 -08:00
parent 1cca13689c
commit 1078c25971
1 changed files with 7 additions and 0 deletions

View File

@ -250,6 +250,9 @@ module.exports = function( grunt ) {
'php hook-docs.php'
].join( '&&' )
},
frontend_test: {
command: 'npm run test:single tests/frontend-tests/' + grunt.option( 'file' )
},
frontend_tests: {
command: 'npm run test'
}
@ -332,4 +335,8 @@ module.exports = function( grunt ) {
grunt.registerTask( 'frontend-tests', [
'shell:frontend_tests'
]);
grunt.registerTask( 'frontend-test', [
'shell:frontend_test'
]);
};