You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A failure for non-existent coverage file can be resolved by setting the path input to match the location of the already generated lcov file.
34
42
35
43
```yaml
36
44
uses: VeryGoodOpenSource/very_good_coverage@v2
37
45
with:
38
-
path: './coverage/lcov.info'
39
-
min_coverage: 95
40
-
exclude: '**/*_observer.dart **/change.dart'
46
+
path: 'my_project/coverage/lcov.info'
47
+
```
48
+
49
+
If your generated lcov file is empty this might be because you have no test files or your tests are not generating any coverage data.
50
+
51
+
If you wish to always bypass these warnings, we recommend using a conditional statement in your workflow to avoid running the Very Good Coverage action when the lcov file is empty or non-existent.
52
+
53
+
For example, if your non-existent or empty coverage file is meant to be located at `./coverage/lcov.info` you may do:
54
+
55
+
```yaml
56
+
- name: Check for existing and non-empty coverage file
57
+
id: test_coverage_file
58
+
run: if [ -s "./coverage/lcov.info" ]; then echo "result=true" >> $GITHUB_OUTPUT ; else echo "result=false" >> $GITHUB_OUTPUT; fi
0 commit comments