-
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
Karma not executing my tests with require #606
Comments
What is your config file look like ? |
Closing this, as I assume it's duplicate of #600 - if you have any more questions, you can ask on mailing list groups.google.com/forum/?fromgroups#!forum/karma-users |
Hi Vojta, No it wasn't a duplicate. I figured it out and it seems that all tests need to use define(...) instead of require(...) otherwise they won't run. I still don't quite understand why... could you explain? |
See I think when you use "require" you can't load that file as a dependency, If you used "require" you would have to include these files directly (not On Sun, Jun 30, 2013 at 6:15 AM, PocketDealHunter
|
Hi,
I've begun writing tests for my app and for some reason, karma refuses to execute them. I know for sure that the tests are loaded because when I make a syntax error, karma reports it but it doesn't fail/pass the tests that I specified.
Karma gives the following output -
PhantomJS 1.9 (Windows) LOG: '/base/test/webapp/unit/myTest.js'
PhantomJS 1.9 (Windows): Executed 0 of 0 SUCCESS (1.175 secs / 0 secs)
The log statement is from my test-main.js
The text was updated successfully, but these errors were encountered: