Skip to content

Is there a method to sanity check what --log-file is currently configured for the current session? #13635

Closed Answered by jxramos
jxramos asked this question in Q&A
Discussion options

You must be logged in to vote

figured it out! Nice hooks

def pytest_report_header(config):
    log_file = config.getoption("--log-file")
    if log_file:
        return  [f"log-file: {log_file}"]

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@shubhamjaju03
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jxramos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants