Skip to content

Commit af60a4e

Browse files
author
Joe Newton
committed
Added code coverage configuration file to explicitly ignore the code coverage of the unit testing targets
1 parent 58fbdfa commit af60a4e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Half.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
/* End PBXContainerItemProxy section */
8888

8989
/* Begin PBXFileReference section */
90+
DD6F08D124008A7400749359 /* codecov.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; path = codecov.yml; sourceTree = "<group>"; };
9091
DDFEEC3323EF13900096015C /* Half.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Half.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9192
DDFEEC3723EF13900096015C /* Half-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Half-Info.plist"; path = "Info/Half-Info.plist"; sourceTree = "<group>"; };
9293
DDFEEC3C23EF13910096015C /* HalfTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HalfTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -235,6 +236,7 @@
235236
children = (
236237
DDFEECAB23F1BA550096015C /* Half.podspec */,
237238
DDFEECAC23F1BA550096015C /* Package.swift */,
239+
DD6F08D124008A7400749359 /* codecov.yml */,
238240
DDFEECAE23F1BA5E0096015C /* .swiftlint.yml */,
239241
DDFEECAD23F1BA5E0096015C /* .travis.yml */,
240242
DDFEECAF23F1BA680096015C /* README.md */,

codecov.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "70...100"
8+
9+
parsers:
10+
gcov:
11+
branch_detection:
12+
conditional: yes
13+
loop: yes
14+
method: no
15+
macro: no
16+
17+
comment:
18+
layout: "reach,diff,flags,tree"
19+
behavior: default
20+
require_changes: no
21+
22+
ignore:
23+
- Tests/**/*

0 commit comments

Comments
 (0)