I think a verifier plugin that simply verifies existence/nonexistence of
files/dir and their contents would be a good first step.

It could be configured with:

<configuration>
  <files>
    <file>
      <location>${basedir}/target/clover/clover.db</location>
      <contains>[enter a regexp here - This is optional]</contains>
      <test>exist (default)|notfound</test>
    </file>
    <file>[...]
  </files>
</configuration>

Could you please tell me where I can find the list of the existing lifecycle
phases? This verifier plugin could be bound to a terminal phase.

Now, how will I tell my test project to execute this verifier plugin goal
when "m2 install" is called for example? I'm assuming a directory structure
of:

mypluginroot/
  |_ plugin/
  |_ tests/
    |_ test01/
    [_ testNN/

Thanks
-Vincent

> -----Original Message-----
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: dimanche 17 avril 2005 01:52
> To: Maven Developers List
> Subject: Re: [M2] Testing a m2 plugin
> 
> Yes, I have a JIRA in to turn that into an m2 plugin itself.
> 
> Not sure that's exactly what you want, as it forks m2 to run the goals.
> 
> Really, an integration test should not be needed - if the plugin is in
> Java, you should be able to test with junit. At least up until the point
> that multiple goals need to occur inside the lifecycle.
> 
> I think the best thing to do would be to put together the tests you need
> and single out the things you don't think are covered by juni, and we
> can all discuss what we can provide for plugin writers - whether it be a
> way to completely run m2, or a test suite that provides APIs to help
> test with junit, or testing implementations of some of the m2 components.
> 
> Just to double check too - you're going to run your ideas for the plugin
> past here as well? I assume you are planning now, and using test first,
> so testing was the first thing :)
> Whether the clover plugin is written as part of the m2 project or not,
> the plugin API is currently being finalised and any reporting coming out
> of it should help form the m2 API's for that along with the other
> plugins getting developed, so I want to make sure everyone is helping
> each other out :)
> 
> Thanks,
> Brett
> 
> Vincent Massol wrote:
> 
> >Hi,
> >
> >I'm writing a Clover plugin and I'd like to write tests for it as I
> >progress. Obviously most tests will have to be integration tests.
> >
> >I've seen that the m2 team has developed an integration test system in
> >maven-components/maven-core-it-verifier with tests in
> >maven-components/maven-core-it.
> >
> >I was wondering if this tester is made available in the form of a m2
> plugin
> >for external plugin writers?
> >
> >Thanks
> >-Vincent
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





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

Reply via email to