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

4371: Update --collect-only to display test descriptions when ran in verbose #4582

Merged

Conversation

jeffreyrack
Copy link
Member

This implements #4371 by updating --collect-only to display test descriptions when running in verbose mode.

Example output:

plugins: xdist-1.23.0, forked-0.2, env-0.6.2, hypothesis-3.73.4
collected 2 items
<Module example_description.py>
  Module containing tests.
  <Function test_a>
    This test has a description
  <Function test_b>
    This test has one docstring line.
    and a second one.

======================== no tests ran in 0.03 seconds =========================

(test_env) C:\Users\User\Desktop\pytest>

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nicoddemus nicoddemus merged commit 1a9979a into pytest-dev:features Dec 30, 2018
@jeffreyrack jeffreyrack deleted the 4371-display-test-descriptions branch December 30, 2018 20:41
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