Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] JUnit4 in org.eclipse.equinox.p2.tests?

Pro:
- JUnit 4 has great new features, like Rules. Rules can for example be used to provide resources (e.g. a p2 agent) to tests in a simple, transparent way.
- Tons of other new features - not really surprising, 4.0 came out, what, five years ago...

Cons:
- There will be JUnit4 tests which people will need to be able to read. IMHO this shouldn't be an issue nowadays.
Note: People won't be forced to _write_ test with JUnit4 - JUnit3 will still be fully supported. 


> -----Original Message-----
> From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On
> Behalf Of Pascal Rapicault
> Sent: Donnerstag, 13. Oktober 2011 14:36
> To: P2 developer discussions
> Subject: Re: [p2-dev] JUnit4 in org.eclipse.equinox.p2.tests?
> 
> Pros and cons?
> 
> On 2011-10-13, at 7:39 AM, Oberlies, Tobias wrote:
> 
> > As far as I am aware, it would be very easy to allow JUnit4 Tests in
> org.eclipse.equinox.p2.tests (see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=360797 ).
> >
> > Does anyone know a reason not to do this?
> >
> > The change would be to really small and limited to
> org.eclipse.equinox.p2.tests:
> > - require org.junit 4.8 or later (instead of 3.8 or later)
> > - change the javacTarget to 1.5 (from jsr14)
> >
> > Regards
> > Tobias
> >
> >
> > _______________________________________________
> > p2-dev mailing list
> > p2-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/p2-dev
> 
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev


Back to the top