buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grotzke <martin.grot...@javakaffee.de>
Subject Re: Suppressing retesting when the buildfile changes and/or only running tests for one project
Date Wed, 18 Feb 2009 20:34:43 GMT
On Wed, 2009-02-18 at 11:27 -0800, Alex Boisvert wrote:
> I believe it's an indirect dependency.
> 
> Let's say I have 2 modules "foo" and "bar".
> 
> bar:test depends on foo:package (say for a jar), but foo:package depends on
> foo:test.
Ok, makes sense.

> 
> So I think the option would be to break the dependency between package and
> test so that you can manually specify only the tests you want to run.
Is this possible somehow for this scenario?
Or is it possible, to specify that projects that the current one
dependends on shall not be built?

Cheers,
Martin


> 
> alex
> 
> 
> On Wed, Feb 18, 2009 at 1:56 AM, Martin Grotzke <
> martin.grotzke@javakaffee.de> wrote:
> 
> > Hi,
> >
> > On Tue, 2009-02-17 at 18:51 -0600, Rhett Sutphin wrote:
> > [snip]
> > > Another solution to that problem would be to have an option to only
> > > run the tests for a single module -- sort of like test:pattern, except
> > > that the constraint would be the module.  This would help with another
> > > minor issue I've noticed: when you specify a pattern, all the tests in
> > > all the modules that match that pattern are run, even if you invoke
> > > test (or integration) from a submodule.
> > I would also expect that, when running tests from within a specific
> > (sub-)module, only tests of this module are executed. Even if other
> > modules depend on the current one, I would not expect that tests of the
> > dependent module are run.
> >
> > What is the reason that tests of all modules are run?
> >
> > Cheers,
> > Martin
> >
> >
> > > Pattern execution appears to
> > > ignore the successful test check, too.  The case where this has been a
> > > problem for me is running integration tests.  I have several
> > > integration tests with "activity" in the filename.  I also have a
> > > large number of unit tests with activity in their filenames.  So if I
> > > want to run just the integration tests for "activity," I have to wait
> > > for several dozen unit tests, across several other modules, to complete.
> > >
> > > The latter issue is less of a problem than the former, but I mention
> > > it since they have a possible common solution.  Is there an existing
> > > solution for any of these?
> > >
> > > Thanks,
> > > Rhett
> > >
> > >
> >

Mime
View raw message