dev@grizzly.java.net

Re: Development & Unit test execution

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 15 Jan 2008 09:39:12 -0500

Salut,

Oleksiy Stashok wrote:
> Hi,
>
> wanted to ask.
> It's only me, who thinks, that running all unit test set on each build,
> it's something undesirable? :))
> For example I would like to add unit tests for
> Controller/SelectorHandler pause/resume operations. But they will
> include tests, which should fail by timeout, for example when
> SelectorHandler is paused - client will end with timeout when trying to
> receive response...
> I can commit that tests, but it will mean total test execution time will
> be increased by approx. 30sec - 1min or may be more.

Commit it. There is a property called:

-Dmaven.test.skip=true

that allow not running the test. If we can start pushing Hudson results
to this alias instead of our private one, I would say we can start using
the property (carefully).

Thanks

-- jeanfrancois


>
> I'm not maven guru, so would like to ask, if there any common practices,
> which may be other projects use, that will allow us to run unit tests,
> when we really need that, but not on each build?
>
> Thanks.
>
> WBR,
> Alexey.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>