mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-09 01:15:01 +08:00
Add pytest-cov and .coveragerc (#24778)
Signed-off-by: Reza Barazesh <rezabarazesh@meta.com>
This commit is contained in:
parent
2891603efd
commit
d96e11167d
32
.coveragerc
Normal file
32
.coveragerc
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
[run]
|
||||||
|
source = vllm
|
||||||
|
omit =
|
||||||
|
*/tests/*
|
||||||
|
*/test_*
|
||||||
|
*/__pycache__/*
|
||||||
|
*/build/*
|
||||||
|
*/dist/*
|
||||||
|
*/vllm.egg-info/*
|
||||||
|
*/third_party/*
|
||||||
|
*/examples/*
|
||||||
|
*/benchmarks/*
|
||||||
|
*/docs/*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
exclude_lines =
|
||||||
|
pragma: no cover
|
||||||
|
def __repr__
|
||||||
|
if self.debug:
|
||||||
|
if settings.DEBUG
|
||||||
|
raise AssertionError
|
||||||
|
raise NotImplementedError
|
||||||
|
if 0:
|
||||||
|
if __name__ == .__main__.:
|
||||||
|
class .*\bProtocol\):
|
||||||
|
@(abc\.)?abstractmethod
|
||||||
|
|
||||||
|
[html]
|
||||||
|
directory = htmlcov
|
||||||
|
|
||||||
|
[xml]
|
||||||
|
output = coverage.xml
|
||||||
@ -6,6 +6,7 @@ pytest-asyncio
|
|||||||
pytest-rerunfailures
|
pytest-rerunfailures
|
||||||
pytest-shard
|
pytest-shard
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
|
pytest-cov
|
||||||
|
|
||||||
# testing utils
|
# testing utils
|
||||||
backoff # required for phi4mm test
|
backoff # required for phi4mm test
|
||||||
|
|||||||
@ -135,6 +135,8 @@ colorful==0.5.6
|
|||||||
# via ray
|
# via ray
|
||||||
contourpy==1.3.0
|
contourpy==1.3.0
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
|
coverage==7.10.6
|
||||||
|
# via pytest-cov
|
||||||
cramjam==2.9.0
|
cramjam==2.9.0
|
||||||
# via fastparquet
|
# via fastparquet
|
||||||
cupy-cuda12x==13.6.0
|
cupy-cuda12x==13.6.0
|
||||||
@ -686,7 +688,9 @@ platformdirs==4.3.6
|
|||||||
plotly==5.24.1
|
plotly==5.24.1
|
||||||
# via genai-perf
|
# via genai-perf
|
||||||
pluggy==1.5.0
|
pluggy==1.5.0
|
||||||
# via pytest
|
# via
|
||||||
|
# pytest
|
||||||
|
# pytest-cov
|
||||||
polars==1.29.0
|
polars==1.29.0
|
||||||
# via mteb
|
# via mteb
|
||||||
pooch==1.8.2
|
pooch==1.8.2
|
||||||
@ -786,6 +790,7 @@ pytest==8.3.5
|
|||||||
# buildkite-test-collector
|
# buildkite-test-collector
|
||||||
# genai-perf
|
# genai-perf
|
||||||
# pytest-asyncio
|
# pytest-asyncio
|
||||||
|
# pytest-cov
|
||||||
# pytest-forked
|
# pytest-forked
|
||||||
# pytest-mock
|
# pytest-mock
|
||||||
# pytest-rerunfailures
|
# pytest-rerunfailures
|
||||||
@ -796,6 +801,8 @@ pytest==8.3.5
|
|||||||
# terratorch
|
# terratorch
|
||||||
pytest-asyncio==0.24.0
|
pytest-asyncio==0.24.0
|
||||||
# via -r requirements/test.in
|
# via -r requirements/test.in
|
||||||
|
pytest-cov==6.3.0
|
||||||
|
# via -r requirements/test.in
|
||||||
pytest-forked==1.6.0
|
pytest-forked==1.6.0
|
||||||
# via -r requirements/test.in
|
# via -r requirements/test.in
|
||||||
pytest-mock==3.14.0
|
pytest-mock==3.14.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user