Hi Peter,

On Sep 28, 2010, at 8:16 PM, Peter Donald wrote:

> Hi,
> 
> I am in the process of converting a bunch of builds based on
> ant/maven/rake to buildr. One of the patterns that I can not see how
> to directly translate into buildr is the single project with multiple
> test types within it. i.e. A project has integration and unit tests
> both written in java and both stored in test hierarchy. It also has
> ruby based integration tests sitting side by side the java test code.
> AFAICS buildr is not really set up for this scenario. It seems that
> for each project there can only be one test invocation, one test
> framework and can not run parts at both integration testing time and
> unit testing time. Is this correct?

Yes.  Each buildr project can only have one test type (either integration or 
unit) and one test framework (junit, rspec, etc.).

> Any suggestions on how to deal with this?

I use a separate subproject for integration tests -- i.e., a subproject that 
only has tests in it and which depends on whatever module(s) I'm trying to 
integratedly test.  It might even be possible to have a subproject definition 
which, through the :base_dir option, executed tests which are physically 
alongside the unit tests in the parent project.  I haven't tried that, though.

Rhett

> 
> -- 
> Cheers,
> 
> Peter Donald

Reply via email to