Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Clover has test file source dir = true warnings

Naga Panguluri November 28, 2017

Hi all,

  I encountered following warnings when I ran mvn site-deploy on multi module maven project. This occurs while performing check goal.

Warning:

[WARNING] has test file source dir = true
[WARNING] test file source dir =

My maven configuration looks like this:

"<configuration>
                        <jdk>${project.java.version}</jdk>
                        <targetPercentage>${clover.target.percentage}</targetPercentage>
                        <generateHistorical>false</generateHistorical>
                        <includesTestSourceRoots>false</includesTestSourceRoots>
                        <licenseLocation>${licenseLocation}</licenseLocation>
                    </configuration>"

Can someone please let me know when would we encounter those warnings and a fix for it. Thanks.

1 answer

0 votes
Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 21, 2017

Hi. This warning is generated when you use check goal and you don't have any test sources instrumented. In the snippet you provided that's the case:

<includesTestSourceRoots>false</includesTestSourceRoots>

It's not harmful for the production code coverage calculation as long as all tests are passing. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events