I am using grunt-loop-mocha to execute tests for selenium webdriver. I am getting below exception:
1) 0001_Int_@@@@_Wrapper-Final "before all" hook:
Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
at Timeout.<anonymous> (C:\Users\@@@@\Documents\oa-automation-suite\oa
-automation-suite\node_modules\mocha\lib\runnable.js:226:19)
Given below is my grunt file:
module.exports = function(grunt) {
grunt.initConfig({
loopmocha: {
src: ["./tests/**/*-specs.js"],
options: {
mocha: {
reporter : 'spec'
},
iterations: [
{
"description": "Executing tests on Chrome",
"DESIRED": '{"browserName": "chrome","os":"Windows","os_version":"7","browser_version":"54"}'
},
{
"description": "Executing tests on Firefox",
"DESIRED": '{"browserName": "firefox","os":"Windows","os_version":"7","browser_version":"54"}'
}
]
}
}
});
grunt.loadNpmTasks('grunt-loop-mocha');
grunt.registerTask('test', 'loopmocha');
};