You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Category3Suite.java 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2017 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package it;
  21. import com.sonar.orchestrator.Orchestrator;
  22. import it.analysis.ExtensionLifecycleTest;
  23. import it.analysis.FavoriteTest;
  24. import it.analysis.IssueJsonReportTest;
  25. import it.analysis.IssuesModeTest;
  26. import it.analysis.LinksTest;
  27. import it.analysis.MultiLanguageTest;
  28. import it.analysis.PermissionTest;
  29. import it.analysis.ProjectBuilderTest;
  30. import it.analysis.ReportDumpTest;
  31. import it.analysis.SSLTest;
  32. import it.analysis.ScannerTest;
  33. import it.analysis.SettingsEncryptionTest;
  34. import it.analysis.TempFolderTest;
  35. import it.measure.DecimalScaleMetricTest;
  36. import it.plugins.VersionPluginTest;
  37. import it.webhook.WebhooksTest;
  38. import org.junit.ClassRule;
  39. import org.junit.runner.RunWith;
  40. import org.junit.runners.Suite;
  41. import static util.ItUtils.pluginArtifact;
  42. import static util.ItUtils.xooPlugin;
  43. @RunWith(Suite.class)
  44. @Suite.SuiteClasses({
  45. // analysis
  46. PermissionTest.class,
  47. ExtensionLifecycleTest.class,
  48. LinksTest.class,
  49. ProjectBuilderTest.class,
  50. TempFolderTest.class,
  51. MultiLanguageTest.class,
  52. IssueJsonReportTest.class,
  53. ScannerTest.class,
  54. IssuesModeTest.class,
  55. VersionPluginTest.class,
  56. SettingsEncryptionTest.class,
  57. ReportDumpTest.class,
  58. SSLTest.class,
  59. FavoriteTest.class,
  60. // measures
  61. DecimalScaleMetricTest.class,
  62. WebhooksTest.class
  63. })
  64. public class Category3Suite {
  65. @ClassRule
  66. public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv()
  67. .addPlugin(xooPlugin())
  68. .setOrchestratorProperty("javaVersion", "LATEST_RELEASE").addPlugin("java")
  69. // Used by SettingsEncryptionTest
  70. .addPlugin(pluginArtifact("settings-encryption-plugin"))
  71. // Used by IssuesModeTest
  72. .addPlugin(pluginArtifact("access-secured-props-plugin"))
  73. // used by TempFolderTest and DecimalScaleMetricTest
  74. .addPlugin(pluginArtifact("batch-plugin"))
  75. // used by ExtensionLifecycleTest
  76. .addPlugin(pluginArtifact("extension-lifecycle-plugin"))
  77. // used by ProjectBuilderTest
  78. .addPlugin(pluginArtifact("project-builder-plugin"))
  79. .build();
  80. }