Skip to content

make --debug more configurable via --debug-file or --debug-append #8954

@symonk

Description

@symonk

Hi, it is probably common (enough) that when using xdist people are running pytest multiple time(s), I think @nicoddemus even mentioned he does this, we do in work similar like:

# multiple jenkins stages & pytest invocations are involved in one 'CI run'
pytest -m parallel and not isolated --debug
pytest -m isolated --debug

By default --debug opens the pytestdebug.log file with w which means collecting artifacts later to assist with debugging when using a CI system like jenkins for example is often problematic as you will only receive the isolated runs debug logs here

I propose one of the following:

  • --debug-file=debug1.log (I think keeping the same root dir here but allowing unique names could be beneficial)
  • --debug-append which appends (a) to the file if it already exists

Thoughts? I will PR if you think its got any merit

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: configrelated to config handling, argument parsing and config filetype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy