Jenkins customization "Junit Report"

1,207 views
Skip to first unread message

jzh...@soasta.com

unread,
Dec 13, 2011, 9:28:56 PM12/13/11
to Jenkins Developers
Hi Jenkins guru -

We have a Jenkins build and junit test suite. Junit test result
report has been published. Now we want to customize the report, e.g.
add application domain content, add URL link etc.

Is there some short-cut to do this, for example , customization
translator ? Or we have to change jenkins source. If change source,
we have to change core or plugins ?

Thanks a lot

Ullrich Hafner

unread,
Dec 14, 2011, 4:13:21 AM12/14/11
to jenkin...@googlegroups.com

I don't think that there is an extension point to customize the JUnit
results. The code for the JUnit tests results is part of Jenkins core.

One idea would be to add new extension points in core where you can
plug in your new visualizations from a separate plug-in.

Ulli

Tom Huybrechts

unread,
Dec 14, 2011, 5:02:42 AM12/14/11
to jenkin...@googlegroups.com

jzh...@soasta.com

unread,
Dec 14, 2011, 12:12:49 PM12/14/11
to Jenkins Developers
Hi,

Thanks you guys !

Could you point me the process and necessary links if we select to
add a new extension point ? Secondly, it is possible we can
leverage TestDataPublisher to avoid writing a new extension point ?

Thanks
-Jian

On Dec 14, 2:02 am, Tom Huybrechts <tom.huybrec...@gmail.com> wrote:
> http://javadoc.jenkins-ci.org/hudson/tasks/junit/TestDataPublisher.html
>
> On Wed, Dec 14, 2011 at 10:13 AM, Ullrich Hafner

> <ullrich.haf...@gmail.com>wrote:

Ullrich Hafner

unread,
Dec 14, 2011, 12:32:00 PM12/14/11
to jenkin...@googlegroups.com
On Wed 14 Dec 2011 06:12:49 PM CET, jzh...@soasta.com wrote:
> Hi,
>
> Thanks you guys !
>
> Could you point me the process and necessary links if we select to
> add a new extension point ? Secondly, it is possible we can
> leverage TestDataPublisher to avoid writing a new extension point ?

Wasn't there already a link in Tom's reply? (I wasn't aware that there
is already such an extension point...)

See our wiki on how to implent an extension point.

Ulli

jzh...@soasta.com

unread,
Dec 14, 2011, 6:49:57 PM12/14/11
to Jenkins Developers
Hi, Ulli /Tom ,

I have read a wiki sample for Builder plug-in. So questions are -

1. When I extend TestDataPublisher, is there mvn HPI create for
TestDataPublisher, creating a skeleton plugin from which I can start
with

2. If no, might I know manual steps to create this kind skeleton

Thank you :)
-Jian

jzh...@soasta.com

unread,
Dec 14, 2011, 7:19:25 PM12/14/11
to Jenkins Developers
Hi,

the reason I asked is

When I extend Builder and add it into project build, I am able to see
the "public DescriptorImpl getDescriptor() " is triggered.

But After I tweaked Builder into TestDataPublisher (most methods use
default impl) , I have not seen "public DescriptorImpl
getDescriptor() " is triggered.

So which action will fire event to "public DescriptorImpl
getDescriptor() " or I am missing something ..

Thanks so much

jzh...@soasta.com

unread,
Dec 15, 2011, 6:34:02 PM12/15/11
to Jenkins Developers
Never mind. Have figured it out.

Thanks you guys :)

Aditi

unread,
Jul 31, 2015, 4:57:03 AM7/31/15
to Jenkins Developers, jzh...@soasta.com
Hi ,
 

I'm trying to integrate Selenium with junit in Jenkins .Locally my test scripts are running fine with ant build.xml and also generating html results reports.
Whereas when ran in Jenkins , test scripts are passing but html reports are not getting generated.Could you please help me sort this issue?
 
Thanks 

Reply all
Reply to author
Forward
0 new messages