From dev-return-29106-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Tue Sep 11 03:23:18 2007 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 79476 invoked from network); 11 Sep 2007 03:23:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 03:23:16 -0000 Received: (qmail 92542 invoked by uid 500); 11 Sep 2007 03:23:08 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 92508 invoked by uid 500); 11 Sep 2007 03:23:08 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 92494 invoked by uid 99); 11 Sep 2007 03:23:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 20:23:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stepan.mishura@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 03:23:06 +0000 Received: by py-out-1112.google.com with SMTP id u77so2827761pyb for ; Mon, 10 Sep 2007 20:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=JR5EomQnj4ipmeVEpAvqKFGxSmUtNUIpGsOMfzKXqrk=; b=ehjNOHfJ+2uyPkOkCdlfA5RLgC5z93a5oOWVp8o4t7a/BTGyB1n+aCGJbtH9kFCDqa5enrkjysZP4tyLnL3kOdY/im0NAr+3wXCRsNbbCrO8SvR0s7DhrP9CnFg7qMwmPtySE6wiUymoX09UH7ZJA9gWcsPV+xcQ/l4jrW6qGx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eRRub8zxJhd5vVBtGF3DnaqBq8tvCDo/iK4yif80KJG0sM0aPhLBwDbTaohMABhQabEWwiiFfOra5rAcgV2h6dFifrOcXAxfchsQwuz70KuwkUkjb2KQ/hB72HmjvJayxafgoePHw4JB2bND57unN2Tj1x5OEYAsYgOfbmDBvVY= Received: by 10.35.125.20 with SMTP id c20mr6863077pyn.1189480964571; Mon, 10 Sep 2007 20:22:44 -0700 (PDT) Received: by 10.35.74.7 with HTTP; Mon, 10 Sep 2007 20:22:44 -0700 (PDT) Message-ID: <6e47b64f0709102022j86cddb7te6be78a49ff5280a@mail.gmail.com> Date: Tue, 11 Sep 2007 10:22:44 +0700 From: "Stepan Mishura" To: dev@harmony.apache.org Subject: Re: [build test] Integrate Emma into BTI 2.0 to get code coverage report In-Reply-To: <94d710af0709092338t72358427ua81d7e8d87ed1216@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <94d710af0709092338t72358427ua81d7e8d87ed1216@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 9/10/07, Sean Qiu wrote: > Hi, guys > > Shall we integrate the emma into our BTI 2.0 to get the test coverage > report? > AFAIK, Robert has spent a number of time on using our unit test to emma > coverage report. > Maybe we can generate the coverage from the BTI test besides our unit test. > > IMHO, we can maintain a individual target as the "run-cc" target in > script/main.xml, like "run-coverage" or something else. > It will set up its requisite like an instrumented jre to run the test. > Before running the test, we need to add value="-Xbootclasspath/p:${instrumented-classlib}"> for each adaptor's > tested jvm task. > Is is possible just to replace jars in lib/boot by instrumented jars? Thanks, Stepan. > Finally, the "run-coverage" command call each adaptor as normal except > assigning the ${instrumented-classlib} to the instrumented classlib jars. > The generated report can be placed to build/coverage-report or some more > proper places. > > I think this approach can extend the BTI 2.0 without too many modifications. > Are there any comments about this? Or any other approach? Any suggestion is > welcomed. > > -- > Sean Qiu > China Software Development Lab, IBM