Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Commit

Permalink
only require localTestSrc property to activate local test source usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Garvin LeClaire committed Aug 15, 2017
1 parent 81ea9ab commit b33b992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mvn -DskipTests=true clean install
```
Run tests on findbugs test source code that is local instead of from FindBugs github repository
```
mvn -DtestSrc=local -DlocalTestSrc=/opt/findBugs -Prun-its clean install
mvn -DlocalTestSrc=/opt/findBugs -Prun-its clean install
```

Run selected tests
Expand Down
13 changes: 2 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
<localTestSrc>${user.dir}/FindBugs</localTestSrc>
<remoteTestSrc>scm:git:https://github.com/findbugsproject/findbugs/</remoteTestSrc>
<includesTestSrcPattern>**findbugsTestCases/src/java/A*.java, **findbugsTestCases/src/java/Use*.java, **findbugsTestCases/src/java/annotations/*.java</includesTestSrcPattern>
<testSrc>remote</testSrc>

<pmd.skip>true</pmd.skip>
<cpd.skip>true</cpd.skip>
Expand Down Expand Up @@ -587,12 +586,8 @@
<profile>
<id>find-it-src-checkout</id>
<activation>
<!-- <file> -->
<!-- <missing>${integrationTestSrc}/A.java</missing> -->
<!-- </file> -->
<property>
<name>testSrc</name>
<value>remote</value>
<name>!localTestSrc</name>
</property>
</activation>
<build>
Expand Down Expand Up @@ -635,12 +630,8 @@
<profile>
<id>find-it-src-local</id>
<activation>
<!-- <file> -->
<!-- <missing>${integrationTestSrc}/A.java</missing> -->
<!-- </file> -->
<property>
<name>testSrc</name>
<value>local</value>
<name>localTestSrc</name>
</property>
</activation>
<build>
Expand Down

0 comments on commit b33b992

Please sign in to comment.