File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -144,5 +144,27 @@ extra_requirements = [
144
144
]
145
145
config = " lint-configs/python/.flake8"
146
146
147
+ [pytest ]
148
+ lockfile = " lockfiles/pytest.lock"
149
+ version = " pytest==7.0.1" # copied from https://www.pantsbuild.org/v2.14/docs/reference-pytest#version
150
+ extra_requirements.add = [
151
+ " pytest-benchmark[histogram]==3.4.1" , # used for st2common/benchmarks
152
+ # "pytest-timer[colorama]", # report test timing (--with-timer ala nose-timer)
153
+ " pytest-icdiff" , # make diff output easier to read
154
+ " pygments" , # highlight code in tracebacks
155
+
156
+ # other possible plugins
157
+ # "pytest-timeout", # time limit on tests
158
+ # "pytest-mock", # more convenient mocking
159
+
160
+ # included by default with pants
161
+ # "pytest-cov", # coverage
162
+ # "pytest-xdist", # parallel test runs (pants uses this if [pytest].xdist_enabled)
163
+ ]
164
+ args = [
165
+ " --no-header" , # don't print pytest version for every tested file
166
+ ]
167
+ execution_slot_var = " ST2TESTS_PARALLEL_SLOT"
168
+
147
169
[regex-lint ]
148
170
config = " @lint-configs/regex-lint.yaml"
You can’t perform that action at this time.
0 commit comments