Skip to content

Commit

Permalink
Revert "Add config for e2e sql tests (#12762)"
Browse files Browse the repository at this point in the history
This reverts commit d7666b7.
  • Loading branch information
cedricongjh committed Feb 20, 2024
1 parent d7666b7 commit 2e76c44
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 119 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/e2e-sql.yml

This file was deleted.

37 changes: 0 additions & 37 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -570,43 +570,6 @@ task e2eTests {
e2eTests.dependsOn "e2eTestTry${id}"
}

task e2eTestsSql {
description "Runs the E2E test suite and retries failed test up to ${numOfTestRetries} times."
group "Test"
}

(1..numOfTestRetries + 1).each { id ->
def isFirstTry = id == 1
def isLastRetry = id == numOfTestRetries + 1
def runUnstableTests = project.hasProperty('unstable')
def outputFileName = runUnstableTests ? "e2e-sql-unstable-test-try-" : "e2e-test-try-"

task "e2eSqlTestTry${id}"(type: Test) {
useTestNG()
options.suites isFirstTry
? (runUnstableTests ? "src/e2e/resources/testng-unstable-e2e-sql.xml" : "src/e2e/resources/testng-e2e-sql.xml")
: file("${buildDir}/reports/${outputFileName}${id - 1}/testng-failed.xml")
options.outputDirectory = file("${buildDir}/reports/${outputFileName}${id}")
options.useDefaultListeners = true
ignoreFailures = !isLastRetry
maxHeapSize = "1g"
reports.html.required = false
reports.junitXml.required = false
jvmArgs "-Xss2m", "-Dfile.encoding=UTF-8"
testLogging {
events "passed"
}
afterTest afterTestClosure
if (isFirstTry) {
afterSuite checkTestNgFailureClosure
}
onlyIf {
isFirstTry || file("${buildDir}/reports/${outputFileName}${id - 1}/testng-failed.xml").exists()
}
}
e2eTestsSql.dependsOn "e2eSqlTestTry${id}"
}

task axeTests {
description "Runs the full accessibility test suite and retries failed tests once."
group "Test"
Expand Down
12 changes: 0 additions & 12 deletions src/e2e/resources/testng-e2e-sql.xml

This file was deleted.

11 changes: 0 additions & 11 deletions src/e2e/resources/testng-unstable-e2e-sql.xml

This file was deleted.

0 comments on commit 2e76c44

Please sign in to comment.