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.

BlackBoxTest.groovy 803B

1234567891011121314151617181920212223242526
  1. package org.sonar.build
  2. import org.gradle.api.tasks.testing.Test
  3. class BlackBoxTest extends Test {
  4. BlackBoxTest() {
  5. def branch = System.getenv('GITHUB_BRANCH')
  6. if (branch != null && Set.of("branch-nightly-build", "master").contains(branch)) {
  7. jvmArgs("-javaagent:" + System.getenv('ASPECTJ_WEAVER_PATH'))
  8. }
  9. systemProperty 'java.awt.headless', 'true'
  10. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  11. systemProperty 'webdriver.chrome.driver', System.getProperty('webdriver.chrome.driver')
  12. if (!project.version.endsWith("-SNAPSHOT")) {
  13. systemProperty 'sonar.runtimeVersion', project.version
  14. }
  15. testLogging {
  16. events "skipped", "failed"
  17. showStandardStreams = true
  18. exceptionFormat 'full'
  19. }
  20. }
  21. }