You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Stephane Nicoll <st...@gmail.com> on 2006/10/29 09:37:26 UTC
Mojo testing w/ the verifier
Hi,
I am trying to use the new testing techniques Jason introduced for the
ITs (namely the Verifier). It's running fine and it fixes the
classloader issues I had with the embedder.
The Ear plugin needs fake artifacts (mainly ejbs, wars, sars, etc) so
I have a fake local repository in my test/resources section. This
allow me to depends on these empty fake artifacts to reproduce many
use cases.
I have thus configured the verifier to use my fake local repo instead
of my standard local repo. This leads to two problems (I think):
- The tests are not running against the local version of the code but
the latest plugin available on the *remote repository* (since my local
repo is empty, it only contains the test artifacts)
- Every time the target directory is cleaned, the tests downloads a
lot of stuff maven depends on. This is really a waste of time and
bandwidth.
I guess my first problem will be resolved with the embedder (Jason?).
For the second one, I think we need a clean solution for this use
case. The Eclipse plugin also has fake artifacts and will face the
same problem if we move to this technique.
Thanks,
Stéphane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Mojo testing w/ the verifier
Posted by Stephane Nicoll <st...@gmail.com>.
Fabrizio,
On 10/29/06, Fabrizio Giustina <fg...@apache.org> wrote:
> Hi Stéphane,
>
>
> Actually, the eclipse plugin already has this problem..
Yeah, I know that. I just meant I was not the only one using a fake
local repository.
> I still couldn't find a good way to fix those problems, but it's
> something that absolutely needs to be addressed. From your mail I see
> that they are still not handled by the new test infrastructure, we'll
> probably have to figure out how this should work without reinventing a
> test strategy in each single plugin...
Actually, Jason is actively working on it and I know he is about to
provide a solution with the embedder. This is really one of the top
priority so I guess we should have something stable short term.
I am closely following this stuff anyway.
Thanks,
Stéphane
>
>
> fabrizio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Mojo testing w/ the verifier
Posted by Fabrizio Giustina <fg...@apache.org>.
Hi Stéphane,
On 10/29/06, Stephane Nicoll <st...@gmail.com> wrote:
> - Every time the target directory is cleaned, the tests downloads a
> lot of stuff maven depends on. This is really a waste of time and
> bandwidth.
..
> For the second one, I think we need a clean solution for this use
> case. The Eclipse plugin also has fake artifacts and will face the
> same problem if we move to this technique.
Actually, the eclipse plugin already has this problem.. it still uses
the embedder directly (and not the Verifier) but during its tests it
needs to download lots of dependencies to the local repo (a directory
in target/test-classes, which is deleted at each clean). This slows
down tests, but also caused failure in the past due to download
timeouts or also due to missing dependencies in updated plugins.
> - The tests are not running against the local version of the code but
> the latest plugin available on the *remote repository* (since my local
> repo is empty, it only contains the test artifacts)
This works fine using the embedder. This is only a problem (should be
fixed by the embedder refactoring in 2.1?) for tests that need to
execute a reactor build which the embedder doesn't run (I need to use
a command line).
I still couldn't find a good way to fix those problems, but it's
something that absolutely needs to be addressed. From your mail I see
that they are still not handled by the new test infrastructure, we'll
probably have to figure out how this should work without reinventing a
test strategy in each single plugin...
fabrizio
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org