Add task for running single test
This commit is contained in:
parent
1cca13689c
commit
1078c25971
|
@ -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'
|
||||
]);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue