Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): show error if no adapter is included
Before this fix, Karma would just execute "an empty" test suite. The next run would however end up with an exception (Property "start" is not a function). This should make it easier to understand.
- Loading branch information
7213877
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this invalidates the instructions here: http://karma-runner.github.io/0.10/plus/requirejs.html
Or perhaps i'm not loading an adapter..
7213877
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jamie-pate you either have to load an adapter that defines
__karma__.start
or you have to define it yourself. I don't see anything that would invalidate the instructions from http://karma-runner.github.io/0.10/plus/requirejs.html - what exactly?When using RequireJS you still need some testing framework - for instance load Jasmine (karma-jasmine plugin), its adapter does define
__karma__.start
.7213877
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes there was a problem with my configuration or a require js error causing this message to appear. Eventually got it working... Nothing to see here :)