Warning: No specs executed
tpiros opened this issue · comments
Tamas Piros commented
I have the following Gruntfile:
module.exports = function(grunt) {
grunt.initConfig({
jasmine: {
src: '*-class.js',
options: {
specs_files: ['spec/*spec.js']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('default', ['jasmine']);
};
Dependencies:
"dependencies": {
"grunt": "^1.0.1"
},
"devDependencies": {
"grunt-contrib-jasmine": "^1.1.0"
}
When running grunt I get the following message:
Running "jasmine:src" (jasmine) task
Testing Jasmine specs via PhantomJS
Warning: No specs executed, is there a configuration error? Use --force to continue.
Aborted due to warnings.
I have my spec under the 'spec folder':
ls spec
product-spec.js
I don't see what the error is unfortunately and why I don't get any specs executed. Also please note that if I run jasmine only I get the specs executed:
jasmine spec/product-spec.js
Started
...
3 specs, 0 failures
Finished in 0.005 seconds
kmachemehl commented
It's simply a typo:
options: { specs_files: ['spec/*spec.js'] }
should be
options: { specs: ['spec/*spec.js'] }