A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 14, 05:30 UTC
Add pytest-cov and .coveragerc (#24778)
Signed-off-by: Reza Barazesh <rezabarazesh@meta.com>
Reza Barazesh committed
Sep 15, 2025 at 22:08 UTC
d96e11167dd269d092fb188bf164ab8bf33807bc
3 files changed
+41
-1
.coveragerc
new
+32
@@ -0,0 +1,32 @@
1
+[run]
2
+source = vllm
3
+omit =
4
+ */tests/*
5
+ */test_*
6
+ */__pycache__/*
7
+ */build/*
8
+ */dist/*
9
+ */vllm.egg-info/*
10
+ */third_party/*
11
+ */examples/*
12
+ */benchmarks/*
13
+ */docs/*
14
+
15
+[report]
16
+exclude_lines =
17
+ pragma: no cover
18
+ def __repr__
19
+ if self.debug:
20
+ if settings.DEBUG
21
+ raise AssertionError
22
+ raise NotImplementedError
23
+ if 0:
24
+ if __name__ == .__main__.:
25
+ class .*\bProtocol\):
26
+ @(abc\.)?abstractmethod
27
+
28
+[html]
29
+directory = htmlcov
30
+
31
+[xml]
32
+output = coverage.xml
requirements/test.in
+1
@@ -6,6 +6,7 @@ pytest-asyncio
6
pytest-rerunfailures
7
pytest-shard
8
pytest-timeout
9
+pytest-cov
10
11
# testing utils
12
backoff # required for phi4mm test
requirements/test.txt
+8
-1
@@ -135,6 +135,8 @@ colorful==0.5.6
135
# via ray
136
contourpy==1.3.0
137
# via matplotlib
138
+coverage==7.10.6
139
+ # via pytest-cov
140
cramjam==2.9.0
141
# via fastparquet
142
cupy-cuda12x==13.6.0
@@ -686,7 +688,9 @@ platformdirs==4.3.6
688
plotly==5.24.1
689
# via genai-perf
690
pluggy==1.5.0
689
- # via pytest
691
+ # via
692
+ # pytest
693
+ # pytest-cov
694
polars==1.29.0
695
# via mteb
696
pooch==1.8.2
@@ -786,6 +790,7 @@ pytest==8.3.5
790
# buildkite-test-collector
791
# genai-perf
792
# pytest-asyncio
793
+ # pytest-cov
794
# pytest-forked
795
# pytest-mock
796
# pytest-rerunfailures
@@ -796,6 +801,8 @@ pytest==8.3.5
801
# terratorch
802
pytest-asyncio==0.24.0
803
# via -r requirements/test.in
804
+pytest-cov==6.3.0
805
+ # via -r requirements/test.in
806
pytest-forked==1.6.0
807
# via -r requirements/test.in
808
pytest-mock==3.14.0