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

Better guidance in --result-log deprecation warning #2739

Closed
thebjorn opened this issue Aug 31, 2017 · 1 comment
Closed

Better guidance in --result-log deprecation warning #2739

thebjorn opened this issue Aug 31, 2017 · 1 comment
Labels
good first issue easy issue that is friendly to new contributor type: docs documentation improvement, missing or needing clarification

Comments

@thebjorn
Copy link

The current warnings summary when using --result-log looks like this:

============================== warnings summary ===============================
None
  --result-log is deprecated and scheduled for removal in pytest 4.0
 
-- Docs: http://doc.pytest.org/en/latest/warnings.html
 
==================== 17 passed, 1 warnings in 3.76 seconds ====================

which doesn't give any information on what to use instead, possible work-arounds, links to more information, etc.

The link to warnings.html looks promising but is a red-herring. Perhaps a more distinctive way of indicating that it isn't related to the --result-log warning can be found?

I wasn't actually using the output of --result-log for anything so the easiest solution was just to remove the usage of the switch (but I didn't think to look at the contents until after I'd found #1812 and #830..)

@nicoddemus
Copy link
Member

@thebjorn you are absolutely right, we should include a link in the warnings message to the Creating resultlog format files section in the docs, and update that section with guidance for users on how to deal with the deprecation.

I think one of the suggestions was to use pytest-tap or create a new external plugin which would generate a stream of JSON objects.

@nicoddemus nicoddemus added type: docs documentation improvement, missing or needing clarification good first issue easy issue that is friendly to new contributor labels Aug 31, 2017
nicoddemus added a commit to nicoddemus/pytest that referenced this issue Aug 31, 2017
fgmacedo pushed a commit to fgmacedo/pytest that referenced this issue Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue easy issue that is friendly to new contributor type: docs documentation improvement, missing or needing clarification
Projects
None yet
Development

No branches or pull requests

2 participants