parent
1b78de4e21
commit
6787877509
1
AUTHORS
1
AUTHORS
|
@ -387,6 +387,7 @@ Terje Runde
|
|||
Thomas Grainger
|
||||
Thomas Hisch
|
||||
Tim Hoffmann
|
||||
Tim Sampson
|
||||
Tim Strazny
|
||||
TJ Bruno
|
||||
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`.
|
|
@ -826,7 +826,13 @@ class TerminalReporter:
|
|||
self._tw.line("%s: %d" % (name, count))
|
||||
else:
|
||||
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
|
||||
stack: List[Node] = []
|
||||
indent = ""
|
||||
|
|
|
@ -1154,9 +1154,9 @@ class TestNewFirst:
|
|||
result = pytester.runpytest("--nf", "--collect-only", "-q")
|
||||
result.stdout.fnmatch_lines(
|
||||
[
|
||||
"test_1/test_1.py::test_2",
|
||||
"test_2/test_2.py::test_1",
|
||||
"test_1/test_1.py::test_1",
|
||||
"test_1/test_1.py::test_2 marks: ",
|
||||
"test_2/test_2.py::test_1 marks: ",
|
||||
"test_1/test_1.py::test_1 marks: ",
|
||||
]
|
||||
)
|
||||
|
||||
|
@ -1173,9 +1173,9 @@ class TestNewFirst:
|
|||
result.stdout.fnmatch_lines(
|
||||
[
|
||||
"new_items: *test_1.py*test_1.py*test_2.py*",
|
||||
"test_1/test_1.py::test_2",
|
||||
"test_2/test_2.py::test_1",
|
||||
"test_1/test_1.py::test_1",
|
||||
"test_1/test_1.py::test_2 marks: ",
|
||||
"test_2/test_2.py::test_1 marks: ",
|
||||
"test_1/test_1.py::test_1 marks: ",
|
||||
]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue