Skip to content

Commit ad606a8

Browse files
authored
SONARPHP-1572 Update readme of integration tests (#1342)
1 parent a75353b commit ad606a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

its/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88

99
1. Make sure your Developer Box is properly setup (see xtranet)
1010
2. Configure Orchestrator settings as described [here](https://github.com/SonarSource/orchestrator#configuration). The Artifactory API key and GitHub token are the only mandatory options. The GH token is a Personal Access Token (classic) with the `repo` scope permission, and SSO properly configured
11-
3. Run `mvn clean install` a first time from this `its` folder so that test resources are built (like custom plugins)
11+
3. Run `./gradlew :its:build` a first time from the root folder so that test resources are built (like custom plugins)
1212

1313
# Running ITs from IntelliJ
1414

15-
1. From the root folder of the repository, first build sonar-php with `mvn clean install`. Without that the old JAR version from sonar-php-plugin/target will be used
15+
1. From the root folder of the repository, first build sonar-php with `./gradlew clean build`. Without that the old JAR version from sonar-php-plugin/build will be used
1616
2. Open a test class and run it
1717

1818
# Running ITs from command line
1919

20-
1. From the root folder of the repository, first build sonar-php with `mvn clean install`
21-
2. Run `mvn verify -f its/pom.xml -Dsonar.runtimeVersion=<SQ server version>`
20+
1. From the root folder of the repository, first build sonar-php with `./gradlew clean build`
21+
2. Run `./gradlew integrationTest -Dsonar.runtimeVersion=<SQ server version>`
2222

2323
# Debug scanner in Integration tests
2424

2525
To debug the Scanner in ITs set the `SONAR_SCANNER_DEBUG_OPTS` like this:
2626

2727
```java
28-
SonarScanner scanner = SonarScanner.create("projectDir")))
28+
SonarScanner scanner = SonarScanner.create("projectDir")
2929
.setEnvironmentVariable("SONAR_SCANNER_DEBUG_OPTS", "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=<port>");
3030

3131
ORCHESTRATOR.executeBuild(scanner);

0 commit comments

Comments
 (0)