You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Rui Goncalves <rg...@gmail.com> on 2015/07/21 13:19:20 UTC

Run unit tests for single module

Hi,

I'm currently working in a project with several sub-projects. I was
expecting to be able to run tests for a specific module (ex. buildr
base-project:sub-project:test), however when I run this target all the
tests run.

Is this the intended behavior? Is there a way to run tests for a specific
sub-project?

Thanks for any help.

Re: Run unit tests for single module

Posted by Rui Goncalves <rg...@gmail.com>.
Thank you ;)

On Tue, Jul 21, 2015 at 3:35 PM, Alex Boisvert <al...@gmail.com>
wrote:

> By default, a project's test task has dependencies on upstream project's
> test tasks.
>
> If you want to test just a single project, you can pass the option
> "test=only".
>
> % buildr base-project-sub-project:test test=only
>
> This is documented here:
> https://buildr.apache.org/testing.html
>
> (look under the "Running Tests" section)
>
>
> On Tue, Jul 21, 2015 at 4:19 AM, Rui Goncalves <rg...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I'm currently working in a project with several sub-projects. I was
> > expecting to be able to run tests for a specific module (ex. buildr
> > base-project:sub-project:test), however when I run this target all the
> > tests run.
> >
> > Is this the intended behavior? Is there a way to run tests for a specific
> > sub-project?
> >
> > Thanks for any help.
> >
>

Re: Run unit tests for single module

Posted by Alex Boisvert <al...@gmail.com>.
By default, a project's test task has dependencies on upstream project's
test tasks.

If you want to test just a single project, you can pass the option
"test=only".

% buildr base-project-sub-project:test test=only

This is documented here:
https://buildr.apache.org/testing.html

(look under the "Running Tests" section)


On Tue, Jul 21, 2015 at 4:19 AM, Rui Goncalves <rg...@gmail.com> wrote:

> Hi,
>
> I'm currently working in a project with several sub-projects. I was
> expecting to be able to run tests for a specific module (ex. buildr
> base-project:sub-project:test), however when I run this target all the
> tests run.
>
> Is this the intended behavior? Is there a way to run tests for a specific
> sub-project?
>
> Thanks for any help.
>