Imagine the following scenario:
-
Write your own test suites with
Mocha -
Use
Karmato run programmatically yourMochatests cross-browser and
cross-devices -
More, integrate
Karmawith your Jasmine existing environment -
Even more, integrate
Karmain your Continuous Integration cycle -
Use a million
Karmaplugin to check coverage, complexity, framework
stuff, etc…
The power of Karma is that it can spawn real browsers – such Chrome or Firefox – to effectively test your code with them.
With Mocha you can run it in a NodeJS environment or in a webpage.