Re: Here is my Centipede scepticism

Nick Chalko <[email protected]>
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Mats Henricson wrote:

> Nick Chalko wrote:
>
>>
>> Standard practice is to name you test *Test   the junit examples show 
>> running test that match that pattern.
>> That is what our cent does.
>
>
> Exactly what I expected, and not what I need. I run them
> in a specific order, because some of them have annoying
> output that I want see last. Also, it is common to turn
> off some tests, so **/*Test.java does not work for me.
>
>> Maybe it fits your needs, maybe not.  Perhaps i can be tweeked to get 
>> what you want, maybe not.
>
>
> Of course it can be tweaked, but the result would be
> something that is more complex than the original. Here
> is my current JUnit task:
>
>   <target name="test" depends="compile"
>           description="Runs UPL JUnit tests">
>     <junit fork="yes" printsummary="off" newenvironment="true">
>       <classpath refid="compile.classpath"/>
>       <formatter type="brief" usefile="false"/>
>       <test name="info.codeq.upl.test.TranslatorTest"/>
>       <test name="info.codeq.upl.test.SerializationTest"/>
>       <test name="info.codeq.upl.test.RegionTest"/>
>       <test name="info.codeq.upl.test.JaxmTest"/>
>       <test name="info.codeq.upl.test.PrefsTest"/>
>       <test name="info.codeq.upl.test.UtilTest"/>
>       <test name="info.codeq.upl.test.WebTest"/>
>       <test name="info.codeq.upl.test.LoadWebTest"/>
>       <test name="info.codeq.upl.test.HibernateTest"/>
>     </junit>
>   </target>
>
> Complex? Not at all! Specific to me? Indeed. Can be made
> into a cent? No way.


it seems you have prticular needs,  if the best way for you share ant 
targets between projects is cut-and-paste, then centipede won't help you.

>
>> But believe me I am happy I have not written a ant task for junit in 
>> 12 months, on the 9 different projects I am involved in.  5 for pay 
>> and 4 for free.  Junit.cent does most of what I need.  If I need more 
>> I add it to the cent and let everyone benifit.
>
>
> Can't see the problem, again. The JUnit task is so simple! 

It always is at first. so I cut and paste that <include name="*Test"/> 
patern into all of my projects,  ooops I forgot <exclude name="All*Test"/>.
Now I need to modify all of myprojects, but I don't.  Some are updated  
some are not, they all start to diverge.  It was a PAIN, do I looked for 
a solution beyond xml entities to share ant targets. 


>
>
>>> Autodownload of jars sounds scary to me, but I'm sure it
>>> solves real problems in real environments. 
>>
>>
>> It is scarry at first.  But so is making sure every developer on your 
>> team is using the "right" version of xalan, with the "right" version 
>> of X on each of the projects you work on.  Ruper (autodownload of 
>> dependent jars) really helps.
>
>
> Hm... but isn't that what you use a repository for?
> You put the Jars in CVS, as a binary file, and someone
> updates the Jar files after that person has tested that
> the new version works well with the current code.

I hate putting jars in CVS,  it is a waste.  We do it but we hate it.  
Ruper allows you to download and keep copies of all needed jars in 
${jars.dir}
Other people like using CVS for jars.

>
> In which way is the problem of having correct versions
> of Jar files different from the problem of having correct
> versions of normal source files?
>
>>> So, does this mean that Centipede is mostly useful in
>>> really complex environments, but overkill for smaller
>>> projects? 
>>
>>
>>
>> Simple project can also benifit.  Expecially if our "template" is 
>> close to there needs. Take a look at the 
>> http://www.krysalis.org/templates/krysalis-project/
>
>
> Mmmm... cool.
>
>> defined here  
>> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/krysalis/krysalis-template/krysalis-project/ 
>
>
>
> Is that directory structure, with these XML files,
> available as a zip-file anywhere?

Yes  try cent-seed.

>
> Mats
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> krysalis-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/krysalis-users
smime.p7s (application/x-pkcs7-signature, 3.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.