Adds git fixture to pytest example #490
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So that one can keep track of versions with data generated.
Changes
Adds to pytest example
How I tested this
Runs locally.
Notes
Checklist
Important
Add
git_info
fixture to capture git details and integrate it into test result logging in pytest examples.git_info
fixture inconftest.py
to capture git commit, branch, and latest tag.test_print_results
intest_some_actions.py
to include git information in the results CSV.git_info
fixture intest_print_results
to log git commit and branch.README.md
to include examples and explanations of using pytest fixtures, including the newgit_info
fixture.This description was created by for 62d85c3. It will automatically update as commits are pushed.