-
Notifications
You must be signed in to change notification settings - Fork 23
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
Catch2: support v3 #115
Catch2: support v3 #115
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great @jnewb1, thanks! Can you please also add a CHANGELOG entry?
src/pytest_cpp/catch2.py
Outdated
cls, | ||
executable: str, | ||
harness_collect: Sequence[str] = (), | ||
) -> bool: | ||
) -> Optional[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to type this correctly, we can either use an enum, or Literal
:
) -> Optional[str]: | |
) -> Optional[Literal["v2", "v3"]]: |
src/pytest_cpp/catch2.py
Outdated
@@ -123,11 +148,16 @@ def run_test( | |||
return [failure], output | |||
|
|||
def _parse_xml( | |||
self, xml_filename: str | |||
self, xml_filename: str, catch_version: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self, xml_filename: str, catch_version: str | |
self, xml_filename: str, catch_version: Literal["v2", "v3"] |
@jnewb1 this is your 2nd high-quality PR to this repository, would you like to be added as a maintainer? It would not entail much more responsibility, but it would give you permission to also review other PRs and handle issues (this is a low volume repository). |
sure, you can add me as a maintainer! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Awesome! Sent you an invite. 👍 |
original work from: #107