mirror of https://github.com/pytest-dev/pytest.git
Merge 6787877509
into 103b2b67b0
This commit is contained in:
commit
372886c840
1
AUTHORS
1
AUTHORS
|
@ -437,6 +437,7 @@ Thomas Grainger
|
||||||
Thomas Hisch
|
Thomas Hisch
|
||||||
Tianyu Dongfang
|
Tianyu Dongfang
|
||||||
Tim Hoffmann
|
Tim Hoffmann
|
||||||
|
Tim Sampson
|
||||||
Tim Strazny
|
Tim Strazny
|
||||||
TJ Bruno
|
TJ Bruno
|
||||||
Tobias Diez
|
Tobias Diez
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
A comma-separated list of markers for each test will be included in the output of `--collect-only` when called with `--verbosity=-1`.
|
|
@ -905,7 +905,13 @@ class TerminalReporter:
|
||||||
self._tw.line(f"{name}: {count}")
|
self._tw.line(f"{name}: {count}")
|
||||||
else:
|
else:
|
||||||
for item in items:
|
for item in items:
|
||||||
self._tw.line(item.nodeid)
|
marks = {
|
||||||
|
m.name
|
||||||
|
for m in item.iter_markers()
|
||||||
|
if m.name not in ["usefixtures", "parametrize"]
|
||||||
|
}
|
||||||
|
marks_str = f" marks: {','.join(marks)}"
|
||||||
|
self._tw.line(f"{item.nodeid}{marks_str}")
|
||||||
return
|
return
|
||||||
stack: list[Node] = []
|
stack: list[Node] = []
|
||||||
indent = ""
|
indent = ""
|
||||||
|
|
|
@ -1170,9 +1170,9 @@ class TestNewFirst:
|
||||||
result = pytester.runpytest("--nf", "--collect-only", "-q")
|
result = pytester.runpytest("--nf", "--collect-only", "-q")
|
||||||
result.stdout.fnmatch_lines(
|
result.stdout.fnmatch_lines(
|
||||||
[
|
[
|
||||||
"test_1/test_1.py::test_2",
|
"test_1/test_1.py::test_2 marks: ",
|
||||||
"test_2/test_2.py::test_1",
|
"test_2/test_2.py::test_1 marks: ",
|
||||||
"test_1/test_1.py::test_1",
|
"test_1/test_1.py::test_1 marks: ",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1189,9 +1189,9 @@ class TestNewFirst:
|
||||||
result.stdout.fnmatch_lines(
|
result.stdout.fnmatch_lines(
|
||||||
[
|
[
|
||||||
"new_items: *test_1.py*test_1.py*test_2.py*",
|
"new_items: *test_1.py*test_1.py*test_2.py*",
|
||||||
"test_1/test_1.py::test_2",
|
"test_1/test_1.py::test_2 marks: ",
|
||||||
"test_2/test_2.py::test_1",
|
"test_2/test_2.py::test_1 marks: ",
|
||||||
"test_1/test_1.py::test_1",
|
"test_1/test_1.py::test_1 marks: ",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue