X Tutup
The Wayback Machine - https://web.archive.org/web/20201124081315/https://github.com/utPLSQL/utPLSQL/issues/1031
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

Junit reporter output not generating an HTML report #1031

Open
guruo5 opened this issue Dec 10, 2019 · 12 comments
Open

Junit reporter output not generating an HTML report #1031

guruo5 opened this issue Dec 10, 2019 · 12 comments

Comments

@guruo5
Copy link

@guruo5 guruo5 commented Dec 10, 2019

I am using UT_JUNIT_REPORTER for my reports and out put o- path/report.html. The html report is not displayed. Looks like system-out and system-err tags are not handled correctly. The xml report also appends previous error as well.

@jgebal
Copy link
Member

@jgebal jgebal commented Dec 10, 2019

Can you provide more information like:

  • exact command that you used
  • utplsql version installed
  • any additional information that could help us help you

With so little amout of information provided I cant even figure you what the problem is exactly.

@guruo5
Copy link
Author

@guruo5 guruo5 commented Dec 10, 2019

  1. utplsql run User/pswd@testdb.test.com:port/testdb -f=ut_junit_reporter() -o=C:\Users...\report.html
  2. Utplsql - 3.1.8 Utplsql -cli 3.1.8
  3. The tests are getting executed and I do get a HTML report, when I try to open the report it's blank. When I look at the xml of the report I can see the details

The above xml does not render when converted to html

@pesse
Copy link
Member

@pesse pesse commented Dec 10, 2019

I don't think that the JUNIT-Reporter was supposed to create HTML in the first place.
Its output is based on this XSD, which doesn't look like HTML: https://gist.github.com/kuzuha/232902acab1344d6b578

Could you provide an example of what's wrong and what you'd expect?

@guruo5
Copy link
Author

@guruo5 guruo5 commented Dec 10, 2019

Any idea on how to generate an HTML report from the Junit reporter?

@pesse
Copy link
Member

@pesse pesse commented Dec 10, 2019

What's the goal you want to achieve?
The only reporter we currently have in utPLSQL that produces HTML is the Coverage HTML reporter (ut_coverage_html_reporter)

@guruo5
Copy link
Author

@guruo5 guruo5 commented Dec 10, 2019

I appreciate your quick response ! My goal is to get HTML report for my test run.

@pesse
Copy link
Member

@pesse pesse commented Dec 10, 2019

With the purpose of having a nicely formatted result?
That's a task usually done by your CI solution. utPLSQL does not come with a specific reporter to do that at the moment.
If you tell us more about your goals we might be able to give some advice regarding continuous integration (there's even a very lightweight solution based on APEX).

@guruo5
Copy link
Author

@guruo5 guruo5 commented Dec 10, 2019

If I am using Jenkins for my CI solution, what plugin I would need to display an HTML report?

@lwasylow
Copy link
Member

@lwasylow lwasylow commented Dec 11, 2019

Hi @guruo5 , the documentation about reporters should hopefully help : http://utplsql.org/utPLSQL/v3.1.9/userguide/reporters.html
There is an plugin junit or something between those lines, havent use Jenkins for while now.

@pesse
Copy link
Member

@pesse pesse commented Dec 11, 2019

From the Jenkins PlugIn page:
https://plugins.jenkins.io/htmlpublisher
Maybe that's what you're looking for?
Do you already import the JUNIT-output from utPLSQL into Jenkins?

@jgebal
Copy link
Member

@jgebal jgebal commented Dec 20, 2019

@jgebal
Copy link
Member

@jgebal jgebal commented Dec 29, 2019

As an action item, we should probably have a section in documentation or some blog posts about integrating utPLSQL with CI servers like Jenkins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.
X Tutup