Absolute path for unit test results

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Absolute path for unit test results

Wim Deblauwe
Hi,

we started using Hudson with ClearCase LT. For that we created a bat file that will create a view on the filesystem, put all the sources from the server into it and then build (using ant internally in the bat file). This works fine for our build.

We now want to add our TestNG tests. I would like to use the option to publish the results, however, the path to the Test report XMLs is relative to the workspace. I would need to be able to specify an absolute path, because with ClearCase I cannot check out into the workspace.

regards,

Wim

--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester
Reply | Threaded
Open this post in threaded view
|

Re: Absolute path for unit test results

Wim Deblauwe
I have solved it by copying the xml files to the workspace at the end of my bat file. However, I had to hardcode the path of the workspace. Would it be possible to have the workspace dir as an enviroment variable?

regards,

Wim

2007/5/9, Wim Deblauwe <[hidden email]>:
Hi,

we started using Hudson with ClearCase LT. For that we created a bat file that will create a view on the filesystem, put all the sources from the server into it and then build (using ant internally in the bat file). This works fine for our build.

We now want to add our TestNG tests. I would like to use the option to publish the results, however, the path to the Test report XMLs is relative to the workspace. I would need to be able to specify an absolute path, because with ClearCase I cannot check out into the workspace.

regards,

Wim

--
Vigilog - an open source log file viewer: <a href="http://vigilog.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://vigilog.sourceforge.net
Blog: <a href="http://www.jroller.com/page/Fester" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.jroller.com/page/Fester



--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester
Reply | Threaded
Open this post in threaded view
|

Re: Absolute path for unit test results

Kohsuke Kawaguchi
Administrator
Wim Deblauwe wrote:
> I have solved it by copying the xml files to the workspace at the end of my
> bat file. However, I had to hardcode the path of the workspace. Would it be
> possible to have the workspace dir as an enviroment variable?

Yes. I just committed a patch from Folke Lemaitre to do this. The name
of the environment variable is WORKSPACE, and this change will be in 1.106.


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment