I would like to get a junit report in addition to the html based report that
jsystem is providing.
I’ve noticed this report: ‘reports.0.xml’ under log/current, but it is not in
a pure junit report format.
How can I produce a pure junit report for my tests execution on jsystem? Once
I know how to produce such report I will be able to use it in our continuous
integration environment (MAVEN)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As I understand jsystem framework, and please correct me if I’m wrong, in
order to do so I need to:
Implement some (jsystem) reporter interface.
Add it to reporter.classes property at the jsystem.propertires file.
The code that generates this junit report should reside in this implementing class.
Does that make sense?
Can you provide some more details about which (jsystem) reporter interfaces I
need to implement and how does the code that generate junit report looks like?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-01-20
Searching for solution of the same issue. Thinking about temporary workaround
with processing reports.0.xml using XSL. But suppose there should be simpler
way. If anyone knows the solution, please inform
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-03-17
Similar problem here. Would like to run tests in a continous integration setup
with Jenkins (Hudson). But Jenkins does not have a plugin to read JSystem
output. It does work well however with JUnit directly.
Been looking into this already for quite some hours (days in fact).
Just found out a next step into the direction i want. editing the scenario
xml file (which is actually an ant file)
The jsystem ant-task within these scenario files is apparently similair to the
junit ant-task. So adding a formatter nested element causes the junit xml
output to be generated.
So in your myScenario.xml file which has something like
This is a good step in the direction I want. Problem remaining though is that
when I use JRunner to update the scenario it will overwrite these changes in
myScenario.xml and will have to do it all over again.
Maybe it is possible to do this differently somehow from JRunner. But didn't
find a way yet... Anybody else know how to do this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-03-18
Found another approach that seems to work for me. Thought I'd share it such
that others can use it if applicable.
I have created an xsl file that transform the xml report output file
(reports.0.xml) into a junit format, i.e.
Hi,
I would like to get a junit report in addition to the html based report that
jsystem is providing.
I’ve noticed this report: ‘reports.0.xml’ under log/current, but it is not in
a pure junit report format.
How can I produce a pure junit report for my tests execution on jsystem? Once
I know how to produce such report I will be able to use it in our continuous
integration environment (MAVEN)
There is not out of box solution for your need.
You need to find the Junit code that generated the report and convert it to a
JSystem reporter.
(it should be easy, since JSystem reporting mechanism support JUnit events)
As I understand jsystem framework, and please correct me if I’m wrong, in
order to do so I need to:
Does that make sense?
Can you provide some more details about which (jsystem) reporter interfaces I
need to implement and how does the code that generate junit report looks like?
Thanks.
Searching for solution of the same issue. Thinking about temporary workaround
with processing reports.0.xml using XSL. But suppose there should be simpler
way. If anyone knows the solution, please inform
Similar problem here. Would like to run tests in a continous integration setup
with Jenkins (Hudson). But Jenkins does not have a plugin to read JSystem
output. It does work well however with JUnit directly.
Been looking into this already for quite some hours (days in fact).
Just found out a next step into the direction i want. editing the scenario
xml file (which is actually an ant file)
The jsystem ant-task within these scenario files is apparently similair to the
junit ant-task. So adding a formatter nested element causes the junit xml
output to be generated.
So in your myScenario.xml file which has something like
for each test. Add a line:
, i.e.
and the junit xml output will be generated in the current directory.
(Optionally you might want specify a specific output directory by adding
to the test tag, i.e.
)
This is a good step in the direction I want. Problem remaining though is that
when I use JRunner to update the scenario it will overwrite these changes in
myScenario.xml and will have to do it all over again.
Maybe it is possible to do this differently somehow from JRunner. But didn't
find a way yet... Anybody else know how to do this?
Found another approach that seems to work for me. Thought I'd share it such
that others can use it if applicable.
I have created an xsl file that transform the xml report output file
(reports.0.xml) into a junit format, i.e.
Executing the transformation can be done from e.g. ant:
Saving the above into a file jsystemToJUnitTransformer.xsl and then adding an
ant target like
does the trick.