Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test names in long output #140

Closed
wants to merge 1 commit into from

Conversation

awiddersheim
Copy link

When running long output test names that are in classes are printed like
the following:

tests/test_foo.py::TestFoo.test_foo

Copy and pasting that into pytest to run will not find the specified
test so this change updates the output to be a bit friendlier:

tests/test_foo.py::TestFoo::test_foo

When running long output test names that are in classes are printed like
the following:

```
tests/test_foo.py::TestFoo.test_foo
```

Copy and pasting that into `pytest` to run will not find the specified
test so this change updates the output to be a bit friendlier:

```
tests/test_foo.py::TestFoo::test_foo
```
@blueyed
Copy link
Collaborator

blueyed commented Aug 29, 2018

Related issue: #125 (comment)

I think there might be a better way to get the test ID directly somehow, but have not investigated.

@Teemu
Copy link
Owner

Teemu commented Oct 17, 2018

I merged another PR that fixed this (I looked that first so it was not a PR competition by any means). #151

Does it fix the problem for you?

@Teemu Teemu closed this Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants