I'm using Karma - Spectacular Test Runner for JavaScript for unit testing in my project, the output is pretty ugly, a bunch of lines inside the command line.
Is there a nicer HTML UI for this??
Thanks!
A Karma JS plugin to support sharding tests to run in parallel across multiple browsers.
We can run Jasmine tests in a browser ourselves by setting up and loading a HTML file, but more commonly we use a command-line tool called Karma. Karma handles the process of creating HTML files, opening browsers and running tests and returning the results of those tests to the command line.
The capture timeout is set to the default value (60000).
Karma is a test runner for JavaScript that runs on Node. js. It is very well suited to testing AngularJS or any other JavaScript projects. Using Karma to run tests using one of many popular JavaScript testing suites (Jasmine, Mocha, QUnit, etc.)
You can use my HTML reporter plugin:
https://github.com/matthias-schuetz/karma-htmlfile-reporter
Just install via "npm install karma-htmlfile-reporter -g" and add some lines to your config.
reporters: ['progress', 'html'],
htmlReporter: {
outputFile: 'tests/units.html'
}
The HTML reporter will generate a HTML file you can view in your browser.
WebStorm has support for running karma tests. They also show test coverage with a simple plugin addition. Setup instructions can be found here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With