-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Executed 0 of 0 ERROR even the test spec executed! #1978
Comments
Dupe on #926 (fixed in 0.13.20) |
@Florian-R Absolutely not the same thing with #926 . I mean my tests are executed successfully. And the browser console get correct output but terminal not. test code define(['demo/app', 'jquery'], function (App, $) {
describe("when the app starts", function () {
it("outputs 'App Started!' in the target", function () {
var target = $("body");
var app = new App(target);
app.start();
expect(target.html()).toEqual("App Started!");
});
});
}); The browser output:
and terminal:
|
Indeed, my bad. I'm not very versed with an AMD setup but it seems to me that you need to require your specs no? |
@Florian-R I solved it just now. I drop So I checked the source code of Thanks anyway. The key point is that we must override |
Expected behavior
The terminal Should log
Success
.Actual behavior
The terminal get
Executed 0 of 0 ERROR (0.003 secs / 0 secs)
.But at http://localhost:9876/debug.html, the console logs:
It's clear that spec is executed.
Enviroment Details
[email protected]
karma.config.js
The text was updated successfully, but these errors were encountered: