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

[custom_junit] Add config options via ini file and env var #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elfiesmelfie
Copy link
Collaborator

Depends-On: #132

@elfiesmelfie elfiesmelfie force-pushed the efoley_custom_junit_update_configuration_options branch from 3f2c8a5 to 3e2d68f Compare October 23, 2024 16:51
The foloowing options are added:

* test_case_prefix
* classname
@elfiesmelfie elfiesmelfie force-pushed the efoley_custom_junit_update_configuration_options branch from 3e2d68f to dc336b8 Compare October 24, 2024 14:00
@elfiesmelfie elfiesmelfie changed the title [custom_junit] Make the test prefix configurable via ini file and env var [custom_junit] Add config options via ini file and env var Oct 24, 2024
@elfiesmelfie elfiesmelfie marked this pull request as ready for review October 24, 2024 16:11
type: notification
short_description: TODO
description:
TODO
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom_junit generates an XML file that polarion can read.
Only the tasks marked with $test_case_prefix are reported.
The first line of the task name (excluding the prefix) is converted to snake_case, and this becomes the testcase name in the results file.


# Custom environment variable handling
# Update this to parse these values from the config file, as well as the env.
self._output_dir = os.path.expanduser("~/.ansible.log")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also be configurable, so we could point it at the expect logs dir in zuul jobs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants