-
Notifications
You must be signed in to change notification settings - Fork 4
Enhance testing configuration and coverage measurement #638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
09b67c6
46d869b
cb848e9
1cc6687
a89ab5c
78ae9dc
a44ac42
ac02f85
5dd5c53
7153cb8
537073d
ed75c9a
f6cb91c
f8e286a
2d116d0
77bd673
e75f51c
c4eba2f
9444d85
8cc27f5
17599f0
c7d848c
510581d
00b0b33
5d82d19
1393402
8792f1a
94352db
91547e3
0aa9e2e
20e152c
f1c9455
cd73f8c
8ca18d0
d2bbba5
9574ce5
972efc2
fc8bad0
abd9d5d
e4ba050
8d73eea
c51aef9
f428269
d772c55
000fcb9
b96459f
72f7d7d
5fe8c59
a1a63f0
da6cf01
31314d7
416eb80
aa8e21b
daa5f08
3323c76
5dec497
267107e
124a9dc
0dc4d1c
7e28191
d42d6de
234eed5
f750d86
b6f7ea4
a4f6f67
78119e5
8c89bb2
ec74317
4056f3d
9b1f131
f2bc2f6
d7c1461
4487598
fc2a85e
3165af5
74f5d1a
05e4142
2fae96d
47887aa
5854f6d
e0c2c75
cbdf741
fe53c8e
4c30350
c0c1071
71d44e0
a5933fd
798b826
fca1b79
c7161c4
2b754c5
19d8bd6
44c3390
121ae56
181e9c2
0f4a02e
746c7bb
5c27464
e6fea2b
66900e8
df5db51
15c9d2c
fe5a84b
c94813d
0a3003b
d20b40b
5ec1830
5b700d9
304dd7c
4158efb
f80f122
433a309
db8296a
ee1c9ce
aad889b
8be53b5
faddb75
e6d8d87
23a33ae
358bb2a
9622486
617e747
ef764bd
146f858
1218cc7
c02f2de
8ea9ba2
c6f581d
40419df
d4c253f
19dba5c
b7b8c79
04e58c7
a73d7a0
d3510a1
f67e749
26ca126
4c79bb8
af1f0a4
acd6b33
5527149
21f6d52
fd222fc
3210f09
2c50c47
9d663bc
7d34d4a
0695a15
eeeac78
68bcb02
3e05420
1a6745b
0c8ea78
51c18ae
17b825f
6783caa
9987e6e
864f9c3
530d7ea
def919f
e33ff7b
6ceb34f
5d94254
c9471c7
466f9a2
39c9536
e0b6716
6009bcb
f79b85c
860c670
0fd5c03
850150d
b15a79b
96ef64d
5e3f23f
76f48d5
bff04dd
fdda705
9dceeac
e79c40b
d5b9281
46efb90
830b52d
e872187
b42b11a
2f0ff1b
2965899
87e7004
0119cfc
1bc3635
7fa682e
ca3c968
a5fd08a
66fb2a4
27f6b77
82479ad
a4c47f3
e0efc06
c7947c5
8e4035f
ba91caf
5ca335f
7212ace
26da704
cb91db8
87c012b
876757d
2919066
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| """Tests module""" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| [build-system] | ||
| {{ build_system }} | ||
|
|
||
| [tool.poetry] | ||
| name = "{{ project_name }}" | ||
| version = "0.1.0" | ||
| description = "" | ||
| authors = ["{{ authors }}"] | ||
| readme = "README.md" | ||
| license = "Apache-2.0" | ||
| classifiers = [ | ||
| {{ classifiers }} | ||
| ] | ||
| package-mode = false | ||
|
|
||
| [tool.poetry.dependencies] | ||
| python = "{{ python }}" | ||
| autonomy-dev = {extras = ["all"], version = "{{ version }}"} | ||
|
|
||
| [tool.poetry.group.dev.dependencies] | ||
| {{ dev_dependencies }} | ||
|
|
||
| [tool.black] | ||
| {{ black_config }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,7 @@ typing_extensions = ">=3.10.0.2" | |
| protobuf = ">=3.19.1,<4.25.0" | ||
| hypothesis = "==6.122.3" | ||
| toml = "==0.10.2" | ||
| tomte = {version = "==0.2.17", extras = ["cli", "tests", "ledgers", "black"]} | ||
| tomte = { version = "==0.2.17", extras = ["cli", "tests", "ledgers", "black"] } | ||
|
|
||
| py-multibase = "==1.0.3" | ||
| py-multicodec = "==0.2.1" | ||
|
|
@@ -64,13 +64,14 @@ rich-click = "^1.8.2" | |
| tbump = "^6.11.0" | ||
| requests = ">=2.28.1,<3" | ||
| ruff = "^0.5.7" | ||
| pydoclint = {extras = ["all"], version = "^0.6.0"} | ||
| pydoclint = { extras = ["all"], version = "^0.6.0" } | ||
| pydantic = "^2.8.2" | ||
| isort = "^5.13.2" | ||
| openapi-spec-validator = "0.2.8" | ||
| disutils = "^1.4.32.post2" | ||
| setuptools = "^75.8.0" | ||
| proto-schema-parser = "^1.5.0" | ||
| pytest-xdist = "^3.6.1" | ||
|
|
||
|
|
||
| [tool.poetry.group.dev.dependencies] | ||
|
|
@@ -80,7 +81,7 @@ mkdocs-include-markdown-plugin = "^7.0.0" | |
| mkdocs-mermaid2-plugin = "^1.1.1" | ||
| mkdocs-material = "^9.5.47" | ||
| mkdocs-material-extensions = "^1.3.1" | ||
| mkdocstrings = {extras = ["python"], version = ">=0.25.2,<0.28.0"} | ||
| mkdocstrings = { extras = ["python"], version = ">=0.25.2,<0.28.0" } | ||
| twine = "^5.1.1" | ||
| mkdocs-autorefs = "^1.0.1" | ||
|
|
||
|
|
@@ -110,8 +111,13 @@ filterwarnings = [ | |
| "ignore:There is no current event loop:DeprecationWarning", | ||
| "ignore:DeprecationWarning*.py:DeprecationWarning", | ||
| "ignore:CoverageWarning*.py:", | ||
| "ignore::DeprecationWarning" | ||
| "ignore::DeprecationWarning", | ||
| ] | ||
|
|
||
| addopts = "--cov=auto_dev --cov-report html" | ||
|
|
||
| [tool.coverage.run] | ||
| source = ["."] | ||
|
|
||
| [tool.coverage.paths] | ||
| source = ["auto_dev", "/tmp/*/auto_dev"] | ||
|
Comment on lines
+122
to
+123
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this increased test coverage locally from ~34% to ~53% We have some issue on CI generating the coverage report tho, it appears (see CI run) |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on local this ensures not all cores will be used (3/4th I believe), while on the CI we take all that are available