Skip to content

Commit c3c888a

Browse files
authored
🤖Add codecov (open-telemetry#64)
1 parent a60e4b1 commit c3c888a

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.circleci/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ jobs:
3131
- run:
3232
name: Test
3333
command: yarn test
34+
- run:
35+
name: report-coverage
36+
command: yarn codecov

codecov.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: no
4+
comment:
5+
layout: "header, changes, diff, files"
6+
behavior: default
7+
coverage:
8+
status:
9+
patch:
10+
default:
11+
target: 80%
12+
project:
13+
default:
14+
target: auto
15+
threshold: 1%

packages/opentelemetry-core/package.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "build/src/index.d.ts",
77
"repository": "open-telemetry/opentelemetry-js",
88
"scripts": {
9-
"test": "nyc ts-mocha -p ./tsconfig.json test/**/*.ts",
9+
"test": "nyc ts-mocha -p tsconfig.json test/**/*.ts",
1010
"tdd": "yarn test -- --watch-extensions ts --watch",
1111
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json",
1212
"clean": "rimraf build/*",
@@ -35,6 +35,17 @@
3535
"LICENSE",
3636
"README.md"
3737
],
38+
"nyc": {
39+
"extension": [
40+
".ts"
41+
],
42+
"exclude": [
43+
"src/index.ts",
44+
"**/*.d.ts",
45+
"build/**/**/*.js"
46+
],
47+
"all": true
48+
},
3849
"publishConfig": {
3950
"access": "public"
4051
},

0 commit comments

Comments
 (0)