Skip to content

Commit 06c7aaf

Browse files
committed
Testing ignoring test files
Adding a codecov.yl to ignore ``` "**tests**/test_*.py" ``` files. The rationale is that we don't want to punish or reward people from writing long or short tests. The code that we care whether it is being tested or not is the code that actually runs in production Worker already does this. I want to see if we can consider this in the API as well. This will likely result in a drop in coverage. But I believe this is beneficial and the new value is more representative of our coverage, and will help us more easily determine what code is actually lacking coverage.
1 parent f52b1fb commit 06c7aaf

File tree

2 files changed

+62
-60
lines changed

2 files changed

+62
-60
lines changed

codecov.yml

+2-60
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,2 @@
1-
github:
2-
bot:
3-
username: codecov-io
4-
integration:
5-
id: 254
6-
pem: src/certs/github.pem
7-
8-
bitbucket:
9-
bot:
10-
username: codecov-io
11-
12-
gitlab:
13-
bot:
14-
username: codecov-io
15-
16-
site:
17-
codecov:
18-
require_ci_to_pass: yes
19-
20-
coverage:
21-
precision: 2
22-
round: down
23-
range: "70...100"
24-
25-
status:
26-
project: yes
27-
patch: yes
28-
changes: no
29-
30-
parsers:
31-
gcov:
32-
branch_detection:
33-
conditional: yes
34-
loop: yes
35-
method: no
36-
macro: no
37-
38-
javascript:
39-
enable_partials: no
40-
41-
comment:
42-
layout: "reach, diff, flags, files, footer"
43-
behavior: default
44-
require_changes: no
45-
require_base: no
46-
require_head: yes
47-
48-
49-
services:
50-
minio:
51-
hash_key: testixik8qdauiab1yiffydimvi72ekq
52-
verify_ssl: false
53-
host: 'minio'
54-
port: 9000
55-
# bucket: <bucket-name>
56-
# region: <bucket-region>
57-
access_key_id: codecov-default-key
58-
secret_access_key: codecov-default-secret
59-
client_uploads: true
60-
dsn: https://stage-web.codecov.dev
1+
ignore:
2+
- "**tests**/test_*.py"

development.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
github:
2+
bot:
3+
username: codecov-io
4+
integration:
5+
id: 254
6+
pem: src/certs/github.pem
7+
8+
bitbucket:
9+
bot:
10+
username: codecov-io
11+
12+
gitlab:
13+
bot:
14+
username: codecov-io
15+
16+
site:
17+
codecov:
18+
require_ci_to_pass: yes
19+
20+
coverage:
21+
precision: 2
22+
round: down
23+
range: "70...100"
24+
25+
status:
26+
project: yes
27+
patch: yes
28+
changes: no
29+
30+
parsers:
31+
gcov:
32+
branch_detection:
33+
conditional: yes
34+
loop: yes
35+
method: no
36+
macro: no
37+
38+
javascript:
39+
enable_partials: no
40+
41+
comment:
42+
layout: "reach, diff, flags, files, footer"
43+
behavior: default
44+
require_changes: no
45+
require_base: no
46+
require_head: yes
47+
48+
49+
services:
50+
minio:
51+
hash_key: testixik8qdauiab1yiffydimvi72ekq
52+
verify_ssl: false
53+
host: 'minio'
54+
port: 9000
55+
# bucket: <bucket-name>
56+
# region: <bucket-region>
57+
access_key_id: codecov-default-key
58+
secret_access_key: codecov-default-secret
59+
client_uploads: true
60+
dsn: https://stage-web.codecov.dev

0 commit comments

Comments
 (0)