You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Ketan Padegaonkar <ke...@gmail.com> on 2008/11/19 18:51:09 UTC
Building (and testing) only certain projects
Hi,
I'd like to build and test only certain projects.
Here's what I've defined in one of my projects "net.sf.swtbot.generator":
compile.with([COMMON_JARS, DEPS,
project("net.sf.swtbot.finder")].flatten).using(:warnings=>false,
:debug=>true)
this however builds the "net.sf.swtbot.finder" project and runs tests on it.
I'd however want to skip tests for the entire "net.sf.swtbot.finder"
project.
I'm using the following command line argument to run the build:
buildr swtbot-2:net.sf.swtbot.generator test
Is this supported by buildr, or is there something I'm doing wrong ?
-- Ketan
Re: Building (and testing) only certain projects
Posted by Assaf Arkin <ar...@intalio.com>.
On Wed, Nov 19, 2008 at 9:55 AM, Ketan Padegaonkar
<ke...@gmail.com> wrote:
> Turns out that I'm doing something wrong. Running with the following command
> line works:
>
> buildr test:net.sf.swtbot.generator
>
> I'm just amazed at the subtleness of a lot of things in buildr!
Buildr runs all the tasks you list on the command line.
buildr swtbot-2:net.sf.swtbot.generator test
This executes two tasks, the second task 'test' just tells Buildr to
run all the tests.
buildr swtbot-2:net.sf.swtbot.generator:test
This executes the test task of swtbot-2:net.sf.swtbot.generator (note
the colon), so only tests for that project and its dependencies.
Other tasks (compile, build, package) behave the same way, you can run
them against all projects or specific project.
buildr test:net.sf.swtbot.generator
This executes all the tests in all the projects but only for classes
that match net.sf.swtbot.generator in their name. This kind of
filtering is specific to the test task.
Assaf
>
> -- Ketan
>
> Ketan Padegaonkar wrote:
>>
>> Hi,
>>
>> I'd like to build and test only certain projects.
>>
>> Here's what I've defined in one of my projects "net.sf.swtbot.generator":
>>
>> compile.with([COMMON_JARS, DEPS,
>> project("net.sf.swtbot.finder")].flatten).using(:warnings=>false,
>> :debug=>true)
>>
>> this however builds the "net.sf.swtbot.finder" project and runs tests on
>> it.
>>
>> I'd however want to skip tests for the entire "net.sf.swtbot.finder"
>> project.
>>
>> I'm using the following command line argument to run the build:
>> buildr swtbot-2:net.sf.swtbot.generator test
>>
>> Is this supported by buildr, or is there something I'm doing wrong ?
>>
>> -- Ketan
>
Re: Building (and testing) only certain projects
Posted by Ketan Padegaonkar <ke...@gmail.com>.
Turns out that I'm doing something wrong. Running with the following
command line works:
buildr test:net.sf.swtbot.generator
I'm just amazed at the subtleness of a lot of things in buildr!
-- Ketan
Ketan Padegaonkar wrote:
> Hi,
>
> I'd like to build and test only certain projects.
>
> Here's what I've defined in one of my projects "net.sf.swtbot.generator":
>
> compile.with([COMMON_JARS, DEPS,
> project("net.sf.swtbot.finder")].flatten).using(:warnings=>false,
> :debug=>true)
>
> this however builds the "net.sf.swtbot.finder" project and runs tests on
> it.
>
> I'd however want to skip tests for the entire "net.sf.swtbot.finder"
> project.
>
> I'm using the following command line argument to run the build:
> buildr swtbot-2:net.sf.swtbot.generator test
>
> Is this supported by buildr, or is there something I'm doing wrong ?
>
> -- Ketan