Skip to content

Commit

Permalink
add dart coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-kasibhatla committed Feb 26, 2024
1 parent 00b63d5 commit 8ba01d9
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 60 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dart-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
- name: Analyze project source
run: dart analyze

# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Enable coverage
run: dart pub global activate coverage

- name: Run tests
run: dart test
run: dart pub global run coverage:test_with_coverage

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
Expand Down
1 change: 1 addition & 0 deletions coverage/coverage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type":"CodeCoverage","coverage":[{"source":"package:logs/logs.dart","script":{"type":"@Script","fixedId":true,"id":"libraries/1/scripts/package%3Alogs%2Flogs.dart","uri":"package:logs/logs.dart","_kind":"library"},"hits":[246,1,247,3,248,1,252,1,253,1,254,2,255,4,256,1,257,2,74,1,104,1,107,1,109,1,116,1,119,1,121,1,128,1,131,1,133,1,140,1,143,1,145,1,152,1,155,1,157,1,167,1,168,3,169,2,171,9,174,1,175,2,177,4,178,2,179,4,180,2,185,1,186,4,187,1,190,0,191,0,196,1,197,1,198,1,199,1,200,4,201,1,202,3,205,1,206,1,207,4,208,1,209,3,212,1,213,1,214,4,215,1,216,3,219,1,220,1,221,4,222,1,223,3,226,1,227,1,228,4,229,1,230,3,234,0]}]}
118 changes: 62 additions & 56 deletions coverage/lcov.info
Original file line number Diff line number Diff line change
@@ -1,66 +1,72 @@
SF:lib/logs.dart
DA:71,1
DA:90,1
DA:93,1
DA:95,1
DA:103,1
DA:106,1
DA:108,1
DA:115,1
DA:118,1
DA:120,1
SF:/Users/adityakasibhatla/work/projects/simple_logger/lib/logs.dart
DA:74,1
DA:104,1
DA:107,1
DA:109,1
DA:116,1
DA:119,1
DA:121,1
DA:128,1
DA:131,1
DA:133,1
DA:141,1
DA:144,1
DA:146,1
DA:140,1
DA:143,1
DA:145,1
DA:152,1
DA:155,1
DA:157,1
DA:158,3
DA:159,2
DA:161,9
DA:164,1
DA:165,2
DA:167,4
DA:168,2
DA:169,4
DA:170,2
DA:176,4
DA:177,1
DA:180,0
DA:181,0
DA:186,1
DA:188,1
DA:189,1
DA:190,5
DA:191,1
DA:192,3
DA:195,1
DA:196,5
DA:167,1
DA:168,3
DA:169,2
DA:171,9
DA:174,1
DA:175,2
DA:177,4
DA:178,2
DA:179,4
DA:180,2
DA:185,1
DA:186,4
DA:187,1
DA:190,0
DA:191,0
DA:196,1
DA:197,1
DA:198,3
DA:198,1
DA:199,1
DA:200,4
DA:201,1
DA:202,5
DA:203,1
DA:204,3
DA:207,1
DA:208,5
DA:209,1
DA:210,3
DA:202,3
DA:205,1
DA:206,1
DA:207,4
DA:208,1
DA:209,3
DA:212,1
DA:213,1
DA:214,5
DA:214,4
DA:215,1
DA:216,3
DA:220,0
DA:233,1
DA:234,3
DA:235,1
DA:239,1
DA:240,1
DA:241,2
DA:242,4
DA:243,1
DA:244,2
LF:62
LH:59
DA:219,1
DA:220,1
DA:221,4
DA:222,1
DA:223,3
DA:226,1
DA:227,1
DA:228,4
DA:229,1
DA:230,3
DA:234,0
DA:246,1
DA:247,3
DA:248,1
DA:252,1
DA:253,1
DA:254,2
DA:255,4
DA:256,1
DA:257,2
LF:68
LH:65
end_of_record

0 comments on commit 8ba01d9

Please sign in to comment.