platform/core/eventbus/tool/coverage.sh
2024-10-02 18:53:12 -07:00

13 lines
295 B
Bash
Executable file

#!/bin/sh
cd ..
# Generate `coverage/lcov.info` file
flutter test --coverage
# Generate HTML report
# Note: on macOS you need to have lcov installed on your system (`brew install lcov`) to use this:
genhtml coverage/lcov.info -o coverage/html
# Open the report
open coverage/html/index.html