Skip to content
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

Does not have real error messages by misconfiguration #15

Closed
ghost opened this issue Jan 16, 2014 · 2 comments
Closed

Does not have real error messages by misconfiguration #15

ghost opened this issue Jan 16, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 16, 2014

I got "empty test suite" by a misconfiguration. The problem was that I added a non-include file pattern before the inclusion pattern of main.js, and that pattern contained the main.js as well. You should mention this in the error message or at least in the documentation.

By 404 "there is not timestamp" errors you should mention that every used file must be added to karma file patterns. Is there any way to add every project file automatically and just select a main.js to load the tests? Why does karma need those non-include file patterns?

@vojtajina
Copy link
Contributor

See karma-runner/karma#853 - that should avoid your troubles with main.js.

Karma needs to know about the files because of file watching and heavy caching.

Please feel free to improve the docs, the source is in https://github.com/karma-runner/karma/tree/master/docs

@ghost
Copy link
Author

ghost commented Jan 22, 2014

I'll summarize my thoughts about this here: karma-runner/karma#888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant