Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SonarQube. #1265

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,31 @@ both Maven Central and JCenter.
$ ./gradlew release
```

#### Running SonarQube (version 8.1) locally

First you need to have Java (Oracle JRE 11 or OpenJDK 11) installed on your machine.

Then download SonarQube community edition from this link: https://www.sonarqube.org/downloads/

Go to the conf folder of your sonarqube installation and edit the following line in wrapper.conf file with this:

`wrapper.java.command=<YOUR-JAVA-LOCATION>\Java\jdk-11.0.6\bin\java`

Go to the following location where your SonarQube is installed:

`<YOUR-SONARQUBE-LOCATION>/sonarqube-8.1.0.31237\bin\windows-x86-64`

Open the command line and do this to start the SonarQube server:

`.\StartSonar.bat`

Open a browser and go to http://localhost:9000

Login with admin as username and password respectively.

Make a project by clicking the + and call it fitnesse.

Now that you've made a project. Open the command line and go to the root of the Java FitNesse project and do this for a code analyse:
`./gradlew sonarqube -x test`

The -x test means not to run the unit test otherwise no code analyse will be done if there's a unit test failing.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ plugins {
id "maven-publish"
id "com.jfrog.bintray" version "1.8.4"
id "com.github.ben-manes.versions" version "0.27.0"
id "org.sonarqube" version "2.7"
}

apply plugin: "info.solidsoft.pitest"
Expand Down