3

I'm new in DevOps, I want to create code coverage from unit testing result in Flutter.

And this is our command to run that:

flutter test --coverage && genhtml coverage/lcov.info --output=coverage

And this is the result:

00:03 +1: All tests passed!                                                                                                                                                                         
zsh: command not found: genhtml

Does somebody know how to fix it?

And also when I running this:

open coverage/index.html

This is the result:

The file /Users/rrifafauzikomara/Documents/speed-interviews-flutter/coverage/index.html does not exist.

Does somebody know how to fix it?

This is my tutorial that I followed

R Rifa Fauzi Komara
  • 1,915
  • 6
  • 27
  • 54

1 Answers1

1

I fix it with follow this tutorial

R Rifa Fauzi Komara
  • 1,915
  • 6
  • 27
  • 54