Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the differences between karma reporters?

I am looking at karma's reporter configuration.

There are some possible reporters: progress, dots, growl, coverage. I don't find any detailed information explaining each of the options.

I tried progress and dots, they all print log to console, the result looks the same. What are the differences between them?

Growl, coverage need a little more configuration, so I didn't succeed testing them.

like image 372
Aaron Shen Avatar asked Aug 31 '14 12:08

Aaron Shen


People also ask

What is karma coverage Istanbul reporter?

A karma reporter that uses the latest istanbul 1. x APIs (with full sourcemap support) to report coverage.

How do I check my karma coverage report?

Open the index. html file inside the /coverage folder to see a report with your source code and code coverage values.

How does Karma test Runner work?

Karma is essentially a tool which spawns a web server that executes source code against test code for each of the browsers connected. The results of each test against each browser are examined and displayed via the command line to the developer such that they can see which browsers and tests passed or failed.


1 Answers

  • Progress will show the number of tests executed, skipped and total.

  • dots will print a dot for each test executed

  • growl will use the growl tool to report the progress of the testing. Note: you need to install the plugin to use this guy.

  • coverage works together with the coverage pre-processor to generate an HTML Coverage report of your Javascript files. Note: you need to install the plugin to use this guy.

like image 66
MarcoL Avatar answered Sep 28 '22 04:09

MarcoL