[Pytest-commit] Issue #504: include node IDs in py.test verbose output (hpk42/pytest)

Andy Freeland issues-reply at bitbucket.org
Mon Apr 14 21:01:06 CEST 2014


New issue 504: include node IDs in py.test verbose output
https://bitbucket.org/hpk42/pytest/issue/504/include-node-ids-in-pytest-verbose-output

Andy Freeland:

While I was working on #499 this morning, @hpk42 @flub and I talked about making the node ID more discoverable, since almost nobody knows that they exist.

The way we discussed to do this is changing the output of `py.test -v` such that it includes the node ids. We still want to include the line numbers, so I wrote up an example output below. I'm not sure if that's the best way to include the line numbers, but they should probably be distinct from the node id.

```
$ py.test -v
================================================ test session starts =================================================
platform darwin -- Python 2.7.6 -- py-1.4.20 -- pytest-2.6.0.dev1 -- /Users/rouge8/.virtualenvs/pytest/bin/python2.7
collected 4 items

test_server.py::test_send_http (3): test_send_http PASSED
test_server.py::test_something_quick (6): test_something_quick PASSED
test_server.py::test_another (9): test_another PASSED
test_server.py::TestClass::()::test_method (12): TestClass.test_method FAILED
```




More information about the pytest-commit mailing list