On 12/22/06, gbois <[EMAIL PROTECTED]> wrote:

Hi,

What is the approach to test (debug) the  code of a maven plugin?
In others words, how i can write unit test for my developped maven plugin?

Join the dev mailing list.

I don't believe there is a "standard" way of doing maven plugin
testing yet. And I've just kicked off a thread that hopefully will
help resolve that issue.
http://www.nabble.com/forum/ViewPost.jtp?post=8015183&framed=y&skin=177

I think for unit testing it is reasonably straight forward as you
don't need a maven environment for that as you mock everything you
need.  The "maven-test-tools" project has some useful helper classes
for this.

For integration testing, there is a lot more work to be done but there
are some frameworks out there, working out which one to use and how
they work is a bit more difficult. Hopefully the thread on the dev
list will resolve that.

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

Reply via email to