As far as I'm aware Junit 4 is backwards compatible with Junit 3 and in fact
one of the Eclipse projects before the changes I made recently had a
dependency on the JUnit 4 library.  (After those changes two projects now
have that dependency as I added a new test).

The problem with adding unit tests later is that it is going to be a real
slog.  When I was at the Java ServerSide Symposium this year one of the
vendors there was Agitar.

http://www.agitar.com/
specifically: http://www.agitar.com/solutions/products/agitarone.html

Their product can generate unit tests for existing Java code.  I don't know
if what is generated is pure Java or had a dependency on some of their code,
but if they do create pure Java JUnit tests (i.e. comptable with the Apache
license) then perhaps we would could approach them to see if they will let
us use their product, for free of course. :)

The benefit to us would be a suite of tests that can validate the code works
as it does from that point onward and the benefit to them is that they can
reference Pivot as a case study.

I'm not totally clear on how it works and what the output is, so I'd be
happy to investigate this in more detail and if necessary liase with Agitar
if you think it would be worthwhile?

Cheers,
Chris



2009/5/27 Todd Volkert <[email protected]>

> Our other test cases use JUnit 3.  We plan to upgrade to JUnit 4 later
> when we make a big pass to use unit testing more pervasively.
>
> -T
>
> On Wed, May 27, 2009 at 4:39 AM, Sandro Martini
> <[email protected]> wrote:
> > Hi Todd,
> > I'll try to send the code today, max tomorrow, including a very simple
> > test case.
> >
> > Just one note,
> > in the BUILD file, still there is as System Requirements:
> >
> > * JUnit 3 (http://www.junit.org/)
> >
> > but for example my test cases needs JUnit 4 (and if i remember well we
> > have chosen this version of JUnit), can you update it ?
> >
> > Thanks,
> > Sandro
> >
>

Reply via email to