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

Saving only failed tests #15

Closed
wants to merge 4 commits into from

Conversation

KerH
Copy link

@KerH KerH commented Nov 26, 2022

Adding the option to save only failures by running:

py.test --failure2file=FILENAME

OR save both:

py.test -p pytest_session2file --session2file=FILENAME --failure2file=FILENAME

@BuhtigithuB
Copy link
Owner

BuhtigithuB commented Jan 24, 2023

Hi @KerH ,

I will review the full extent of your PR ASAP, but at first glance it does not seems right to have 2 ways to pass "FILENAME", your --failure2file shall be bool type like --failure=only no??

@KerH
Copy link
Author

KerH commented Jan 29, 2023

Hi @BuhtigithuB, thank you for the review, it sounds right - changed it to save failures using a boolean flag instead (only one path should be provided in a single run). Let me know if you have any questions.

@BuhtigithuB
Copy link
Owner

Hi @KerH,

Can you squash your PR branch, it will help final code review as currently I can only see the mods you made over your initial PR.

Thanks

@KerH
Copy link
Author

KerH commented Feb 10, 2023

@BuhtigithuB please let me know if you have any questions or comments. Thank you

@BuhtigithuB
Copy link
Owner

BuhtigithuB commented Feb 16, 2023 via email

@KerH
Copy link
Author

KerH commented Feb 19, 2023

Hi @BuhtigithuB, I'm Closing this one as I created a new one here.

@KerH KerH closed this Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants