-
Notifications
You must be signed in to change notification settings - Fork 11
[custom_junit] Add config options via ini file and env var #160
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
base: master
Are you sure you want to change the base?
[custom_junit] Add config options via ini file and env var #160
Conversation
3e2d68f
to
dc336b8
Compare
callback_plugins/custom_junit.py
Outdated
type: notification | ||
short_description: TODO | ||
description: | ||
TODO |
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.
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.
callback_plugins/custom_junit.py
Outdated
|
||
# 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") |
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 should also be configurable, so we could point it at the expect logs dir in zuul jobs.
453c26f
to
d448e5a
Compare
d448e5a
to
ba8d6e2
Compare
The following options are added: * test_case_prefix * classname
ba8d6e2
to
c7aa7bc
Compare
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.
Code looks correct.
Depends-On: #132