Skip to content

Commit 1bb883f

Browse files
author
Joe Newton
committed
Added code coverage configuration file to explicitly ignore the code coverage of the unit testing targets
1 parent 7be45bc commit 1bb883f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Complex.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150

151151
/* Begin PBXFileReference section */
152152
DD6F08CC240077C300749359 /* TestingBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestingBase.swift; sourceTree = "<group>"; };
153+
DD6F08D02400808300749359 /* codecov.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; path = codecov.yml; sourceTree = "<group>"; };
153154
DDB8120623F59B760079FEB5 /* Complex.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Complex.swift; sourceTree = "<group>"; };
154155
DDB8120B23F5A8E80079FEB5 /* Functions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Functions.swift; sourceTree = "<group>"; };
155156
DDB8121023F5AEB10079FEB5 /* ComplexTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComplexTests.swift; sourceTree = "<group>"; };
@@ -330,6 +331,7 @@
330331
DDFEECAB23F1BA550096015C /* Complex.podspec */,
331332
DDB8121423F634770079FEB5 /* Cartfile.private */,
332333
DDFEECAC23F1BA550096015C /* Package.swift */,
334+
DD6F08D02400808300749359 /* codecov.yml */,
333335
DDFEECAE23F1BA5E0096015C /* .swiftlint.yml */,
334336
DDFEECAD23F1BA5E0096015C /* .travis.yml */,
335337
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)