On Sun, 30 Oct 2005, Vincent Massol wrote:

Hi,

> Hi,
>
> Is there a <packaging> type for projects that are only executing
> integration/functional tests and not generating any artifact? If I use a pom
> packaging there are several issues:

Since they don't produce artifacts pom is appropriate here..

> - the eclipse plugin doesn't generate eclipse project files for me

That's because eclipse can't handle nested projects, and for now that is
solved by not producing projects with packaging pom. However when you
specify -Declipse.workspace= (or I believe someone changed that param to
be just 'workspace' - why?) it WILL generate pom projects.

I guess the logic should be changed to detect 'leaf' projects and warn
about skipped non-leaf projects.

> - more importantly the tests that I currently put in src/tests/java are not
> executed.

If this is a typo: either use src/test/java or src/it/java (if the it
plugin is finished ;))

If this is NOT a typo: weird, I didn't know specifying packaging pom
didn't run any tests.

How about just specify packaging 'jar' for now?

> So I think we should have a "integration-test" packaging that would map the
> test directory to be src/it (for example).

If the above are resolved I don't know why.. it's a phase. It's weird
enough that the test phase is also a valid attachment, but since that road
was taken, I guess integration-test could be a valid attachment too.

> Obviously another solution would be to use the it plugin but it doesn't do
> what I need. I need to write my test logic above the execution of the m2
> projects so that I can do some setup and perform possibly complex assertions
> that wouldn't be supported by the verifier plugin for example).

You were going to give me some feedback about this :)
I think the it plugin does exactly this. You specify tests per project (or
even 'inherit' them using dependencies) so you can do whatever you want in
the test phase - check for created files, etc.. You can even bind stuff to
the integration test phase of the integration test projects so you'll have
a finished artifact to run tests on.

You can specify the configuration in the pom - the only official api to
communicate with plugins. You don't need to write unit test code just to
set up a plugin. You can always write a custom 'verifier' plugin and bind
that to your integration test phase, doing the complex assertions.

So why isn't the it plugin good enough? Too complex, too repetitive work
(configuring different pom.xml's?) Not flexible enough?

As for the assertions, I was thinking about porting some tests from the
verifier plugin (the maven-core-it one) to the it plugin, but I need to
know what kind of assertions you want to do.

Hope to get some feedback!

-- Kenney

>
> Thanks
> -Vincent
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to