Re: How does Jenkins know tests history

2012-11-23 Thread Yaron Naveh
Hi

Check this image. Jenkins says this test failure is a regression (e.g.
fails this build, passed previous build). How does Jenkins know to match
the result from both builds - after all Jenkins know about the test results
only the xunit xml. So I guess Jenkins compare test names from the Xml? In
this case if a class is renamed so the full name of its tests also changes
and all this history data is lost. Is this correct?


[image: Inline image 1]


On Fri, Nov 23, 2012 at 12:35 PM, clem wrote:

> Hi,
>
> you mean the Jenkins Links / Permalinks correct ?
>
> http://javadoc.jenkins-ci.org/hudson/model/PermalinkProjectAction.Permalink.html
>
> I dont think, that Jenkins does a string Matching. Jenkins has its own
> Methods to get
> these information.
>
> For example you can use:
> item = hudson.model.Hudson.instance.getItem("job_name")
> build = item.getLastBuild()
>
> So i guess its working with a List and without any matching tests, there
> shouldnt be
> lost datas.
>
> But if im wrong, im happy for any further information.
>
> Clem
>



-- 

I'm on Twitter (@YaronNaveh )
<>

How does Jenkins know tests history

2012-11-22 Thread Yaron Naveh
When a test fails Jenkins writes something like "Failing for the past 4 
build (Since #12)". How does Jenkins know the test history - is it by 
string matching the class/test name to previous results? If so and the 
class name changes does it mean that all history context for its tests is 
also lost?