You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Patrick Rhomberg <pr...@pivotal.io> on 2017/11/10 20:11:53 UTC
Test Coverage Mapping
Hello, all.
While looking at expanding testing coverage, the natural question arose:
what does the existing test coverage map look like?
Does anyone know if we have an existing code-coverage analysis done as
part of our testing? If there is, does anyone know if our DUnitTests or
AcceptanceTests are (or could be) included in the coverage map? I think
this could be a very useful tool in driving new tests and the detection of
dead code.
Imagination is Change.
~Patrick
Re: Test Coverage Mapping
Posted by Mark Bretl <as...@gmail.com>.
Yea, the integration into the Apache SonarQube dropped off at some point. I
can look into it again.
As for the coverage for tests, take a look at $root/gradle/code-analysis.gradle
for seeing how code coverage works now. I think we have 'test
integrationTest distributedTest' configured for creating HTML reports,
acceptanceTests need to be added.
--Mark
On Fri, Nov 10, 2017 at 2:23 PM, Dan Smith <ds...@pivotal.io> wrote:
> Sorry, wrong link. I think they updated analysis.apache.org to this:
>
> https://builds.apache.org/analysis
>
> -Dan
>
> On Fri, Nov 10, 2017 at 2:00 PM, Dan Smith <ds...@pivotal.io> wrote:
>
> > We have some support in our gradle build to run tests coverage manually
> > with something like this:
> >
> > ../gradlew clean test integrationTest distributedTest acceptanceTest
> > -PcodeCoverage jacocoOverallTestReport
> >
> > This should generate a code coverage report. At one point I know we were
> > talking about integrating with analysis.apache.org, which is running
> > sonarqube, but I don't know what happened with that. I don't think there
> is
> > any job that is automatically running these tests with coverage.
> >
> > -Dan
> >
> > On Fri, Nov 10, 2017 at 12:11 PM, Patrick Rhomberg <prhomberg@pivotal.io
> >
> > wrote:
> >
> >> Hello, all.
> >>
> >> While looking at expanding testing coverage, the natural question
> arose:
> >> what does the existing test coverage map look like?
> >> Does anyone know if we have an existing code-coverage analysis done as
> >> part of our testing? If there is, does anyone know if our DUnitTests or
> >> AcceptanceTests are (or could be) included in the coverage map? I think
> >> this could be a very useful tool in driving new tests and the detection
> of
> >> dead code.
> >>
> >> Imagination is Change.
> >> ~Patrick
> >>
> >
> >
>
Re: Test Coverage Mapping
Posted by Dan Smith <ds...@pivotal.io>.
Sorry, wrong link. I think they updated analysis.apache.org to this:
https://builds.apache.org/analysis
-Dan
On Fri, Nov 10, 2017 at 2:00 PM, Dan Smith <ds...@pivotal.io> wrote:
> We have some support in our gradle build to run tests coverage manually
> with something like this:
>
> ../gradlew clean test integrationTest distributedTest acceptanceTest
> -PcodeCoverage jacocoOverallTestReport
>
> This should generate a code coverage report. At one point I know we were
> talking about integrating with analysis.apache.org, which is running
> sonarqube, but I don't know what happened with that. I don't think there is
> any job that is automatically running these tests with coverage.
>
> -Dan
>
> On Fri, Nov 10, 2017 at 12:11 PM, Patrick Rhomberg <pr...@pivotal.io>
> wrote:
>
>> Hello, all.
>>
>> While looking at expanding testing coverage, the natural question arose:
>> what does the existing test coverage map look like?
>> Does anyone know if we have an existing code-coverage analysis done as
>> part of our testing? If there is, does anyone know if our DUnitTests or
>> AcceptanceTests are (or could be) included in the coverage map? I think
>> this could be a very useful tool in driving new tests and the detection of
>> dead code.
>>
>> Imagination is Change.
>> ~Patrick
>>
>
>
Re: Test Coverage Mapping
Posted by Dan Smith <ds...@pivotal.io>.
We have some support in our gradle build to run tests coverage manually
with something like this:
../gradlew clean test integrationTest distributedTest acceptanceTest
-PcodeCoverage jacocoOverallTestReport
This should generate a code coverage report. At one point I know we were
talking about integrating with analysis.apache.org, which is running
sonarqube, but I don't know what happened with that. I don't think there is
any job that is automatically running these tests with coverage.
-Dan
On Fri, Nov 10, 2017 at 12:11 PM, Patrick Rhomberg <pr...@pivotal.io>
wrote:
> Hello, all.
>
> While looking at expanding testing coverage, the natural question arose:
> what does the existing test coverage map look like?
> Does anyone know if we have an existing code-coverage analysis done as
> part of our testing? If there is, does anyone know if our DUnitTests or
> AcceptanceTests are (or could be) included in the coverage map? I think
> this could be a very useful tool in driving new tests and the detection of
> dead code.
>
> Imagination is Change.
> ~Patrick
>