Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add category qualityGate to integration tests
- Loading branch information
Showing
12 changed files
with
141 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
tests/src/test/java/org/sonarqube/tests/qualityGate/OrganizationQualityGateSuite.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* SonarQube | ||
* Copyright (C) 2009-2017 SonarSource SA | ||
* mailto:info AT sonarsource DOT com | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package org.sonarqube.tests.qualityGate; | ||
|
||
import com.sonar.orchestrator.Orchestrator; | ||
import org.junit.ClassRule; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.Suite; | ||
|
||
import static util.ItUtils.pluginArtifact; | ||
import static util.ItUtils.xooPlugin; | ||
|
||
@RunWith(Suite.class) | ||
@Suite.SuiteClasses({ | ||
OrganizationQualityGateUiTest.class, | ||
OrganizationQualityGateTest.class, | ||
OrganizationQualityGateForSmallChangesetsTest.class | ||
}) | ||
public class OrganizationQualityGateSuite { | ||
|
||
@ClassRule | ||
public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv() | ||
// required for notification tests | ||
.setServerProperty("sonar.notifications.delay", "1") | ||
|
||
// reduce memory for Elasticsearch | ||
.setServerProperty("sonar.search.javaOpts", "-Xms128m -Xmx128m") | ||
|
||
.addPlugin(pluginArtifact("posttask-plugin")) | ||
.addPlugin(xooPlugin()) | ||
.build(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateSuite.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* SonarQube | ||
* Copyright (C) 2009-2017 SonarSource SA | ||
* mailto:info AT sonarsource DOT com | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package org.sonarqube.tests.qualityGate; | ||
|
||
import com.sonar.orchestrator.Orchestrator; | ||
import org.junit.ClassRule; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.Suite; | ||
|
||
import static util.ItUtils.pluginArtifact; | ||
import static util.ItUtils.xooPlugin; | ||
|
||
@RunWith(Suite.class) | ||
@Suite.SuiteClasses({ | ||
QualityGateTest.class, | ||
QualityGateUiTest.class, | ||
QualityGateNotificationTest.class, | ||
QualityGateOnRatingMeasuresTest.class, | ||
}) | ||
public class QualityGateSuite { | ||
|
||
@ClassRule | ||
public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv() | ||
// required for notification tests | ||
.setServerProperty("sonar.notifications.delay", "1") | ||
|
||
// reduce memory for Elasticsearch | ||
.setServerProperty("sonar.search.javaOpts", "-Xms128m -Xmx128m") | ||
|
||
.addPlugin(pluginArtifact("posttask-plugin")) | ||
.addPlugin(xooPlugin()) | ||
.build(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.