Skip to content

Commit 00e15e3

Browse files
meatballhatnevillelyh
authored andcommitted
Run pytest with cov
and report to term and html for both quick feedback and detailed feedback when desired.
1 parent 4b8e2fe commit 00e15e3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
*.egg-info
2+
.coverage
23
.direnv/
34
.envrc
45
/.idea
56
/build
67
/dist
78
/internal/util/version.txt
8-
/python/coglet/_version.py
99
/python/cog/command/cog-schema-*
1010
/python/cog/server/http/cog-server-*
11+
/python/coglet/_version.py
1112
/uv.lock
1213
__pycache__

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dev = [
2222
]
2323

2424
test = [
25+
'pytest-cov',
2526
'pytest',
2627
'pytest-asyncio',
2728
'tqdm',
@@ -35,6 +36,12 @@ build-backend = 'setuptools.build_meta'
3536
ignore = ['W009']
3637

3738
[tool.pytest.ini_options]
39+
addopts = [
40+
'-v',
41+
'--cov',
42+
'--cov-report=term',
43+
'--cov-report=html',
44+
]
3845
asyncio_default_fixture_loop_scope = 'function'
3946
filterwarnings = [
4047
'ignore::ImportWarning',

0 commit comments

Comments
 (0)