JUnit Benchmark with Jenkins

160 views
Skip to first unread message

Murugan M

unread,
Apr 23, 2014, 9:55:44 AM4/23/14
to junit-be...@googlegroups.com
I have modified my test cases and integrated with Jenkins.From Jenkins I was able to execute and output the junit result into XML file.
I tried to publish this junit test report (TEST*.xml) into Jenkins using various plugins.It is simply showing that the test case runs only time.
Here is the snippet of my build.xml

<target name="junit" depends="war">
<echo message="Execute One Test" />
<junit printsummary="yes" fork="yes" haltonfailure="no">
<classpath refid="classpath" />
<formatter type="xml" />
<test name="com.ibatis.jpetstore.domain.test.JpetStoreTestSuite" todir="${junit}" />
</junit>
</target>

and the result of my junit is 
<testcase classname="com.ibatis.jpetstore.domain.test.PetstoreTestcase" name="testSignOn" time="10.0" />
PetstoreTestcase.testSignOn: [measured 20 out of 20 rounds, threads: 1 (sequential)]
 round: 0.50 [+- 0.00], round.block: 0.00 [+- 0.00], round.gc: 0.00 [+- 0.00], GC.calls: 0, GC.time: 0.00, time.total: 10.00, time.warmup: 0.00, time.bench: 10.00
]]>

from this result Im running the testcase for 20 times
but in the graph it is shown as 1 samples

URI: testSignOn

URI

Samples

Samples diff

Average (ms)

Average diff (ms)

Median (ms)

Median diff (ms)

Line90 (ms)

Minimum (ms)

Maximum (ms)

Http Code

Previous Http Code

Errors (%)

Errors diff (%)

Average (KB)

Total (KB)

testSignOn

1

0

10000

-116

10000

-116

10000

10000

10000

0.0 %

0.0 %

0.0

0.0

and the graph is also not the same as mentioned in the Junit Benchmark website

Can anyone pls let me know how to generate the graph as mentioned  Junit Benchmark website in Genkins














0.0

Dawid Weiss

unread,
Apr 24, 2014, 3:46:44 AM4/24/14
to junit-benchmarks

It does run just one time from JUnit's point of view. The benchmark runner is a rule and it repeats calls to the test 
method internally, but is still a regular (single) JUnit test case.

Dawid


--
You received this message because you are subscribed to the Google Groups "JUnitBenchmarks: Performance Benchmarking for JUnit4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to junit-benchmar...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages