Replies: 2 comments
-
Maybe I overlooked something, but could you please clarify what exactly should be "simplified"? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is the problem that you want all output in one start of fixtures to end of all tests + fixtures? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to simplify my current logging system for my program testing. I'm using pytest and python 3.10.8 default logging module. I'm not sure if this is even possible from what I've seen online. Thought I'd ask in case anyone knows if this is possible.
Basically I run the pytest command and while the test is run, its also outputting to a log file that I've created at "../logs/test.log"
pyproject.toml:
What's used in the code:
Current log file created:
Desired log file:
I don't think it would be relevant to this question but i'm including it incase it's helpful.
Pytest session:
command:
python -m pytest tests_*.py -s
Beta Was this translation helpful? Give feedback.
All reactions