File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,22 @@ jobs:
35
35
- name : Analyze project source
36
36
run : dart analyze
37
37
38
- # Your project will need to have tests in test/ and a dependency on
39
- # package:test for this step to succeed. Note that Flutter projects will
40
- # want to change this to 'flutter test'.
38
+ # Run Dart tests and output them at directory `./coverage`:
41
39
- name : Run tests
42
- run : dart test
40
+ run : dart test --coverage=./coverage
41
+
42
+ # Activate package `coverage`
43
+ - name : Activate package coverage
44
+ run : dart pub global activate coverage
45
+
46
+ # Generate LCOV report
47
+ - name : Generate LCOV report
48
+ run : genhtml -o ./coverage/report ./coverage/lcov.info
49
+
50
+ # Format collected coverage to LCOV
51
+ - name : Format collected coverage to LCOV
52
+ run : dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage
53
+
43
54
# Run Codecov
44
55
- name : Codecov
45
56
You can’t perform that action at this time.
0 commit comments