On Tue, Mar 4, 2014 at 10:01 AM, Szczepan Faber < szczepan.fa...@gradleware.com> wrote:
> Down the road, we should make it dead easy to configure a multiproject > build in a way it runs tests from all subprojects before failing. Perhaps > it should even be the default for a multiproject build. --continue flag > does help to achieve it in some ways and perhaps is good enough for now. > > I agree that --continue helps. Yet it again falls short and will stop at those test task before proceeding to TestReport. TestReport doesn't declare the dependency directly. It sets its input files to binResultsDir content of tasks it reportsOn. -Radim Cheers! > > > On Tue, Mar 4, 2014 at 12:28 AM, Luke Daley <luke.da...@gradleware.com>wrote: > >> >> >> Radim Kubacki <mailto:radim.kuba...@gradleware.com> >>> 4 March 2014 3:29 am >>> >>> When I was modifying test aggregation implementation ( >>> https://github.com/gradle/gradle/commit/985f6fa6c137a9903e764fe1581824 >>> 2972c24bc8) I found it hard to make it do what I expect: assume I have >>> a set of tests for my project and want to run them several times. Each time >>> it will be run with some special set up (against different DBs, servers, >>> with a different configuration ...). And I want to run them all and see the >>> report rather than stop at first failed test task. >>> >>> The problem is that the build fails with first failed test task and the >>> report is not run or I will mark test tasks to ignore failures to get the >>> report and the build will always succeed. I thought that >>> 1. report task should be used as finalizer task (TestReport.reportOn >>> should create finalizing dependency) >>> >> I'm stunned it doesn't. >> >> 2. TestReport should emit the message 'There were failing tests. See the >>> report at: ...' too if there are failures and set the build result >>> accordingly (can be option on that task) >>> >> Not so sure that this is the right way. >> >>> Opinions? >>> >>> -Radim >>> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > > -- > Szczepan Faber > Principal engineer@gradle; Founder@mockito >