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

Commit

Permalink
revert only require localTestSrc property to activate local test sour…
Browse files Browse the repository at this point in the history
…ce usage to bypass test source code downloads
  • Loading branch information
Garvin LeClaire committed Aug 15, 2017
1 parent b33b992 commit 69b0aeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ Maven Mojo Plug-In to generate reports based on the FindBugs Analyzer

Run all tests
```
mvn -Prun-its clean install
mvn -DtestSrc=remote -Prun-its clean install
```
Skip tests
```
mvn -DskipTests=true clean install
```
Run tests on findbugs test source code that is local instead of from FindBugs github repository
```
mvn -DlocalTestSrc=/opt/findBugs -Prun-its clean install
mvn -DtestSrc=local -DlocalTestSrc=/opt/findBugs -Prun-its clean install
```

Run selected tests
Expand Down
9 changes: 6 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@
<integrationTestSrc>${project.build.directory}/it-src-findbugs</integrationTestSrc>
<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>
<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,7 +588,8 @@
<id>find-it-src-checkout</id>
<activation>
<property>
<name>!localTestSrc</name>
<name>testSrc</name>
<value>remote</value>
</property>
</activation>
<build>
Expand Down Expand Up @@ -631,7 +633,8 @@
<id>find-it-src-local</id>
<activation>
<property>
<name>localTestSrc</name>
<name>testSrc</name>
<value>local</value>
</property>
</activation>
<build>
Expand Down

0 comments on commit 69b0aeb

Please sign in to comment.