I can think of some hacky ways to use the profile yetus tries to
activate[1] to have the integration tests run during the test-phase.
But that's a bad idea, since you'll essentially have to duplicate any
work configured to happen in the pre-integration-test and
post-integration-test phases.

Probably easiest will be to define a new test plugin that calls the
verify goal (with the needed params to avoid e.g. unit tests, javadoc,
etc). The checkstyle and findbugs test plugins both include having
maven run with goals:

https://github.com/apache/yetus/blob/master/precommit/test-patch.d/checkstyle.sh#L164

https://github.com/apache/yetus/blob/master/precommit/test-patch.d/findbugs.sh#L100

They take different approaches, with findbugs using
maven_modules_worker. It looks much simpler to base your test on the
findbugs plugin, IMHO.

We'd love a "make a Yetus test plugin" tutorial based on "run a maven
plugin," if you wouldn't mind writing down the process you end up
going through. ;)


[1]: 
http://yetus.apache.org/documentation/0.1.0/precommit-buildtools/#test-profile

On Sun, Jan 10, 2016 at 10:18 PM, Josh Elser <[email protected]> wrote:
> Hi all,
>
> I've had this come up a few times in talks about enabling PreCommit for some
> other projects. Best as I can tell, the support to invoke integration tests
> isn't supported.
>
> Assuming I'm not just wrong, any direction on where to start looking for
> this? I have a general idea of how I think the functionality would fit in,
> but I'm not sure where to start looking in the code. Maybe the
> maven_modules_worker function in maven.sh? (Also, have I missed any docs
> that might have already covered this?)
>
> Thanks in advance!
>
> - Josh

Reply via email to