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
genhtml
is not present in yourPATH
... could you tryecho $PATH
and check/usr/bin/
is in it – SquealLast login: Thu May 21 21:14:45 on ttys001 rrifafauzikomara@rs-macbook-pro ~ % echo $PATH /Users/rrifafauzikomara/Documents/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin rrifafauzikomara@rs-macbook-pro ~ %
This is the result ofechi $PATH
– Flournoywhich genhtml
? – Squealecho $PATH
in my terminal – Flournoy