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

Enable log FileHandlers per test function #72

Closed
clacroix12 opened this issue May 21, 2019 · 2 comments
Closed

Enable log FileHandlers per test function #72

clacroix12 opened this issue May 21, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request High Priority High priority issues

Comments

@clacroix12
Copy link
Contributor

Currently with our ocs-ci custom test runner we create a log FileHandler for every test case. We would like to replicate this behavior with pytest. One way of getting after this that sounds fairly straight forward is implementing a function level fixture that creates and removes the handlers for every test.

https://stackoverflow.com/questions/41400722/pytest-implementing-a-logfile-per-test-method

@clacroix12 clacroix12 added enhancement New feature or request High Priority High priority issues labels May 21, 2019
@vavuthu vavuthu self-assigned this May 21, 2019
@vavuthu
Copy link
Contributor

vavuthu commented May 21, 2019

Assigning to myself.

@clacroix12
Copy link
Contributor Author

#159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request High Priority High priority issues
Projects
None yet
Development

No branches or pull requests

2 participants