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

XML Output #123

Closed
stephenfin opened this issue Apr 14, 2014 · 4 comments · Fixed by #129
Closed

XML Output #123

stephenfin opened this issue Apr 14, 2014 · 4 comments · Fixed by #129

Comments

@stephenfin
Copy link
Contributor

This is part-question, part-feature request.

Does OFTest support some form of XML-based output, or something easily parsed by machines. I'm interested in using it with Jenkins, but as it stands I'll need manual parsing rules to check for ok/fail conditions.

@rlane
Copy link
Contributor

rlane commented Apr 15, 2014

OFTest doesn't currently support this but I'd be happy to accept a patch for it.

@stephenfin
Copy link
Contributor Author

Ok. Looks easy enough to do with the xmlrunner package. I'll have a look. Some questions first though, if you could answer them:

  • Should I enable it by default?
  • If so, where should I store them? test-results is a common dir for said package. Should I store this as a subdir in log_dir, perhaps?
  • Do settings above belong in the Logging options group of options, or a new Output options group?

@rlane
Copy link
Contributor

rlane commented Apr 16, 2014

Let's not enable it by default if it would introduce a new package dependency. What format does Jenkins expect the XML output in? One file per test, or a single file for all tests? You can use the Logging options group.

@stephenfin
Copy link
Contributor Author

(1) Sounds fair.
(2) I'm not certain. Sites like this would suggest the latter. I'll try my solution on CloudBees first?
(3) OK.

stephenfin added a commit to stephenfin/oftest that referenced this issue May 14, 2014
Add support for xUnit-format XML output by utilising the 'xmlrunner'
package. This feature is optional, and is disabled by default.

Resolves issue floodlight#123.

Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
stephenfin added a commit to stephenfin/oftest that referenced this issue May 14, 2014
Add support for xUnit-format XML output by utilising the 'xmlrunner'
package. This feature is optional, and is disabled by default.

Resolves issue floodlight#123.

Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
stephenfin added a commit to stephenfin/oftest that referenced this issue May 15, 2014
Add support for xUnit-format XML output by utilising the 'xmlrunner'
package. This feature is optional, and is disabled by default.

Resolves issue floodlight#123.

Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
stephenfin added a commit to stephenfin/oftest that referenced this issue May 15, 2014
Add support for xUnit-format XML output by utilising the 'xmlrunner'
package. This feature is optional, and is disabled by default.

Resolves issue floodlight#123.

Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
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 a pull request may close this issue.

2 participants