-
-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test task is failed: you need to implement some adapter that implements __karma__.start method #37
Comments
I had the same problem and rather than spend too long looking it to it I just used the same versions of plug-ins as John. I know this doesn't solve the problem; I just wanted to complete the course and then come back to this at a later point
|
First of all i see that you are using version above 0.13. So lets fix the var Server = require('karma').Server;
var server = new Server({
configFile: __dirname + '/karma.conf.js',
exclude: excludeFiles,
singleRun: !!singleRun
}, karmaCompleted); Now let's fix the second error, We can see that we have two problems:
here the code of function karmaCompleted(karmaResult) {
log('Karma completed!');
if (karmaResult === 1) {
done('karma: tests failed with code ', karmaResult);
} else {
done();
}
} And below is the quick fix, i created a variable status that with display either 'ERROR' or 'SUCCESS' depending on karma's function karmaCompleted(karmaResult) {
var status = karmaResult === 1 ? 'ERROR' : 'SUCCESS';
log('Karma completed with: ' + status);
log('Exit Code: ' + karmaResult);
done(); // stripped the arguments that gulp complains about
process.exit(karmaResult); // tell karma to exit once tests are done
} And voila, i hope this helps! |
Please find the attached file for the detailed stack trace and I am also attached my gulpfile.js and gulp.config.js. Could you please help me to resolve this issue.
Gulp_GulpConfigJsFiles.zip
The text was updated successfully, but these errors were encountered: