You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Kerry Wilson <KW...@picagroup.com> on 2010/02/15 22:02:02 UTC
Integration Testing
Reading from the documentation I am unclear how to run integration tests. Here is what I have:
define 'my-project' do
...
...
# unit tests
test.compile.from('unit-tests').with *TEST_DEPENDENCIES
test.with *TEST_DEPENDENCIES
# integration testing
test.using :integration
test.compile.from('functional-tests').with *TEST_DEPENDENCIES
test.with *TEST_DEPENDENCIES
end
Unit testing works fine until I add the integration tests then 'buildr test' runs integration tests instead. What am I doing wrong?
Thanks,
kw
**********************************************************************
Disclaimer: This electronic message may contain information that is Confidential or legally privileged. It is intended only for the use of the individual(s) and entity named in the message. If you are not an intended recipient of this message, please notify the sender immediately and delete the material from your computer. Do not deliver, distribute or copy this message and do not disclose its contents or take any action in reliance on the information it contains.
**********************************************************************
Re: Integration Testing
Posted by Rhett Sutphin <rh...@detailedbalance.net>.
Hi Kerry,
On Feb 15, 2010, at 3:02 PM, Kerry Wilson wrote:
> Reading from the documentation I am unclear how to run integration
> tests. Here is what I have:
>
> define 'my-project' do
> ...
> ...
>
> # unit tests
> test.compile.from('unit-tests').with *TEST_DEPENDENCIES
> test.with *TEST_DEPENDENCIES
>
> # integration testing
> test.using :integration
> test.compile.from('functional-tests').with *TEST_DEPENDENCIES
> test.with *TEST_DEPENDENCIES
>
> end
>
> Unit testing works fine until I add the integration tests then
> 'buildr test' runs integration tests instead. What am I doing wrong?
Each subproject can have either unit or integration tests, not both.
To put it another way, each subproject can have only one test task,
which can run either in the unit test part of the lifecycle or the
integration test part.
If you need multiple kinds of tests for a particular project, use a
separate subproject for the integration tests.
Rhett
>
> Thanks,
>
> kw
> **********************************************************************
> Disclaimer: This electronic message may contain information that is
> Confidential or legally privileged. It is intended only for the use
> of the individual(s) and entity named in the message. If you are not
> an intended recipient of this message, please notify the sender
> immediately and delete the material from your computer. Do not
> deliver, distribute or copy this message and do not disclose its
> contents or take any action in reliance on the information it
> contains.
> **********************************************************************
Re: Integration Testing
Posted by Antoine Toulme <an...@lunar-ocean.com>.
test.using :integration forced using integration I think. Just remove that
line, and use either buildr test or buildr integration for each target.
This is all said from memory without looking at the doc, if that doesn't
work please let us know!
On Mon, Feb 15, 2010 at 13:02, Kerry Wilson <KW...@picagroup.com> wrote:
> Reading from the documentation I am unclear how to run integration tests.
> Here is what I have:
>
> define 'my-project' do
> ...
> ...
>
> # unit tests
> test.compile.from('unit-tests').with *TEST_DEPENDENCIES
> test.with *TEST_DEPENDENCIES
>
> # integration testing
> test.using :integration
> test.compile.from('functional-tests').with *TEST_DEPENDENCIES
> test.with *TEST_DEPENDENCIES
>
> end
>
> Unit testing works fine until I add the integration tests then 'buildr
> test' runs integration tests instead. What am I doing wrong?
>
> Thanks,
>
> kw
> **********************************************************************
> Disclaimer: This electronic message may contain information that is
> Confidential or legally privileged. It is intended only for the use of the
> individual(s) and entity named in the message. If you are not an intended
> recipient of this message, please notify the sender immediately and delete
> the material from your computer. Do not deliver, distribute or copy this
> message and do not disclose its contents or take any action in reliance on
> the information it contains.
> **********************************************************************
>