Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"E" and "I" symbols in istanbul HTML reports

Tags:

istanbul

what do the "I" and "E" symbols with the black backgrounds signify in the HTML reports generated by the istanbul JS code coverage tool?

enter image description here

like image 258
almel Avatar asked Oct 25 '16 18:10

almel


People also ask

What does E mean in code coverage report?

These symbols are in front of if-else statements. As you can see in the image you have attached, 'E' is in front of an if-else statement in which the 'Else' block is not covered and 'I' is in front an if-else statement in which the 'If' block is not covered. Follow this answer to receive notifications.

What is e in test coverage?

'E' stands for 'else path not taken', which means that for the marked if/else statement, the 'if' path has been tested but not the 'else'. 'I' stands for 'if path not taken', which is the opposite case: the 'if' hasn't been tested. The xN in left column is the amount of times that line has been executed.

What is Istanbul code coverage?

Istanbul is a JavaScript code coverage tool that works by analyzing your codebase and providing you with the coverage insights you need in order to understand, file by file, where unit tests are needed in your app.


1 Answers

These symbols are in front of if-else statements.

As you can see in the image you have attached, 'E' is in front of an if-else statement in which the 'Else' block is not covered and 'I' is in front an if-else statement in which the 'If' block is not covered.

like image 96
Manolis Kalafatis Avatar answered Oct 18 '22 07:10

Manolis Kalafatis