Skip to content

Commit 6696d0c

Browse files
Seperate unit and integration test coverage (#453)
Co-authored-by: Fabian Jakobs <fabian.jakobs@databricks.com>
1 parent 7fffba0 commit 6696d0c

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,21 @@ jobs:
5252
- name: Unit Tests With Code Cov
5353
run: yarn test:cov
5454

55+
- name: Upload unit test coverage reports to Codecov
56+
uses: codecov/codecov-action@v3
57+
with:
58+
directory: ./coverage/unit
59+
flags: unit
60+
working-directory: packages/databricks-sdk-js
61+
5562
- name: Integration Tests
5663
run: yarn run test:integ:cov
5764

58-
- name: Upload coverage reports to Codecov
65+
- name: Upload unit test coverage reports to Codecov
5966
uses: codecov/codecov-action@v3
6067
with:
61-
directory: ./coverage
68+
directory: ./coverage/integration
69+
flags: integration
6270
working-directory: packages/databricks-sdk-js
6371

6472
test-extension:
@@ -124,12 +132,6 @@ jobs:
124132
run: yarn run test:cov
125133
working-directory: packages/databricks-vscode
126134

127-
- name: Upload coverage reports to Codecov
128-
uses: codecov/codecov-action@v3
129-
with:
130-
directory: ./coverage
131-
working-directory: packages/databricks-vscode
132-
133135
- name: Integration Tests
134136
run: yarn run test:integ
135137
working-directory: packages/databricks-vscode

codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
comment:
2+
layout: "header, diff, flags, components"
3+
4+
component_management:
5+
individual_components:
6+
- component_id: sdk
7+
name: js-sdk
8+
paths:
9+
- packages/databricks-sdk-js
10+
11+
flag_management:
12+
individual_flags:
13+
- name: unit
14+
- name: integration

packages/databricks-sdk-js/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
"exclude": [
7070
"src/**/*.test.ts",
7171
"src/**/*.integ.ts",
72-
"src/apis/**"
72+
"src/apis/**",
73+
"src/test/**"
7374
],
7475
"reporter": [
7576
"lcov",

0 commit comments

Comments
 (0)