You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Juan Pablo Santos Rodríguez <ju...@gmail.com> on 2012/02/06 23:13:20 UTC
making tests mandatory by default
Hi all,
now that we have a 100% success rate in unit tests execution, I was
thinking that it could be a good occasion to make them mandatory, running
them before the JSPWiki jar is built. In my pc this means a ~3 minute
overhead in build time, but I think it's worth it. We could also enable a
flag just in case we don't want to run them..
WDYT?
regards,
juan pablo
Re: making tests mandatory by default
Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi,
committed needed changes into trunk
Tests now get executed after JSPWiki.jar is built, it was way more easier
to enforce tests this way than executing them before building the main jar.
Test(s) failure(s) implies build failure.
Finally, test execution can be desactivated through jspwiki.test.skip
property (i.e.: ant clean jar -Djspwiki.test.skip=true).
regards,
juan pablo
On Tue, Feb 7, 2012 at 5:03 AM, Harry Metske <ha...@gmail.com> wrote:
> +1
> Op 6 feb. 2012 23:13 schreef "Juan Pablo Santos Rodríguez" <
> juanpablo.santos@gmail.com> het volgende:
>
> > Hi all,
> >
> > now that we have a 100% success rate in unit tests execution, I was
> > thinking that it could be a good occasion to make them mandatory, running
> > them before the JSPWiki jar is built. In my pc this means a ~3 minute
> > overhead in build time, but I think it's worth it. We could also enable a
> > flag just in case we don't want to run them..
> >
> > WDYT?
> >
> >
> >
> > regards,
> > juan pablo
> >
>
Re: making tests mandatory by default
Posted by Harry Metske <ha...@gmail.com>.
+1
Op 6 feb. 2012 23:13 schreef "Juan Pablo Santos Rodríguez" <
juanpablo.santos@gmail.com> het volgende:
> Hi all,
>
> now that we have a 100% success rate in unit tests execution, I was
> thinking that it could be a good occasion to make them mandatory, running
> them before the JSPWiki jar is built. In my pc this means a ~3 minute
> overhead in build time, but I think it's worth it. We could also enable a
> flag just in case we don't want to run them..
>
> WDYT?
>
>
>
> regards,
> juan pablo
>
Re: making tests mandatory by default
Posted by Andrew Jaquith <an...@gmail.com>.
+1
2012/2/6 Juan Pablo Santos Rodríguez <ju...@gmail.com>:
> Hi all,
>
> now that we have a 100% success rate in unit tests execution, I was
> thinking that it could be a good occasion to make them mandatory, running
> them before the JSPWiki jar is built. In my pc this means a ~3 minute
> overhead in build time, but I think it's worth it. We could also enable a
> flag just in case we don't want to run them..
>
> WDYT?
>
>
>
> regards,
> juan pablo
Re: making tests mandatory by default
Posted by Florian Holeczek <fl...@holeczek.de>.
Good idea!
+1 from me, the flag solution included.
BTW, we should in general have a look at test coverage in new commits.
Regards
Florian
----- Ursprüngliche Mail -----
Von: "Juan Pablo Santos Rodríguez" <ju...@gmail.com>
An: jspwiki-dev@incubator.apache.org
Gesendet: Montag, 6. Februar 2012 23:13:20
Betreff: making tests mandatory by default
Hi all,
now that we have a 100% success rate in unit tests execution, I was
thinking that it could be a good occasion to make them mandatory, running
them before the JSPWiki jar is built. In my pc this means a ~3 minute
overhead in build time, but I think it's worth it. We could also enable a
flag just in case we don't want to run them..
WDYT?
regards,
juan pablo