Skip to content

Commit 6ab1ce6

Browse files
authored
Add regression test for EDT freeze when Q creds are expired (#4891)
This replaces the old UI robot test plugin with https://github.com/JetBrains/intellij-ide-starter, which is more feature-rich than what is currently available. We abandon the existing UI tests because they are all failing anyways
1 parent eed7127 commit 6ab1ce6

File tree

24 files changed

+306
-26
lines changed

24 files changed

+306
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.gradle
22
.intellijPlatform
3+
.kotlin
34
out/
45
target/
56
.idea

buildSrc/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ dependencies {
3434
testImplementation(libs.junit4)
3535
testImplementation(libs.bundles.mockito)
3636
testImplementation(gradleTestKit())
37-
38-
testRuntimeOnly(libs.junit5.jupiterVintage)
3937
}
4038

4139
tasks.test {

buildSrc/src/main/kotlin/toolkit-publishing-conventions.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,8 @@ tasks.verifyPlugin {
6666
// give each instance its own home dir
6767
systemProperty("plugin.verifier.home.dir", temporaryDir)
6868
}
69+
70+
val pluginZip by configurations.creating
71+
artifacts {
72+
add("pluginZip", tasks.buildPlugin)
73+
}

buildSrc/src/main/kotlin/toolkit-testing.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ dependencies {
2020

2121
// Everything uses junit4/5 except rider, which uses TestNG
2222
testFixturesApi(platform(versionCatalog.findLibrary("junit5-bom").get()))
23-
testFixturesApi(versionCatalog.findLibrary("junit5-jupiterApi").get())
24-
testFixturesApi(versionCatalog.findLibrary("junit5-jupiterParams").get())
23+
testFixturesApi(versionCatalog.findLibrary("junit5-jupiter").get())
2524

26-
testRuntimeOnly(versionCatalog.findLibrary("junit5-jupiterEngine").get())
25+
testRuntimeOnly(versionCatalog.findLibrary("junit-platform-launcher").get())
2726
testRuntimeOnly(versionCatalog.findLibrary("junit5-jupiterVintage").get())
2827
}
2928

buildspec/linuxUiTests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
phases:
2020
install:
2121
commands:
22-
- dnf install -y marco mate-media
22+
- dnf install -y marco mate-media e2fsprogs
2323
- startDesktop.sh
2424

2525
# login to DockerHub so we don't get throttled
@@ -45,10 +45,9 @@ phases:
4545
credential_source=EcsContainer"
4646
4747
- chmod +x gradlew
48-
- ./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME :sandbox-all:prepareTestIdeUiSandbox --console plain --info
4948

5049
- ffmpeg -loglevel quiet -nostdin -f x11grab -video_size ${SCREEN_WIDTH}x${SCREEN_HEIGHT} -i ${DISPLAY} -codec:v libx264 -pix_fmt yuv420p -vf drawtext="fontsize=48:box=1:[email protected]:boxborderw=5:fontcolor=white:x=0:y=h-text_h:text='%{gmtime\:%H\\\\\:%M\\\\\:%S}'" -framerate 12 -g 12 /tmp/screen_recording.mp4 &
51-
- ./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME uiTestCore coverageReport --console plain --info
50+
- ./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME :ui-tests-starter:test coverageReport --console plain --info
5251

5352
post_build:
5453
commands:

detekt-rules/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ dependencies {
1515

1616
// only used to make test work
1717
testRuntimeOnly(libs.slf4j.api)
18-
testRuntimeOnly(libs.junit5.jupiterVintage)
1918
}
2019

2120
tasks.test {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ toolkitVersion=3.46-SNAPSHOT
88
publishToken=
99
publishChannel=
1010

11-
ideProfileName=2024.1
11+
ideProfileName=2024.2
1212

1313
remoteRobotPort=8080
1414

gradle/libs.versions.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,13 @@ jackson-xml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-xm
9191
jackson-yaml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml", version.ref = "jackson" }
9292
jacoco = { module = "org.jacoco:org.jacoco.core", version.ref = "jacoco" }
9393
jgit = { module = "org.eclipse.jgit:org.eclipse.jgit", version.ref = "jgit" }
94+
95+
# platfom launcher version selected by BOM
96+
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher" }
97+
9498
junit4 = { module = "junit:junit", version.ref = "junit4" }
9599
junit5-bom = { module = "org.junit:junit-bom", version.ref = "junit5" }
96-
junit5-jupiterApi = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit5" }
97-
junit5-jupiterEngine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit5" }
98-
junit5-jupiterParams = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit5" }
100+
junit5-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit5" }
99101
junit5-jupiterVintage = { module = "org.junit.vintage:junit-vintage-engine", version.ref = "junit5" }
100102
kotlin-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinCoroutines" }
101103
kotlin-coroutinesDebug = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-debug", version.ref = "kotlinCoroutines" }

noop/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
// project that does nothing
5+
tasks.register("test")

plugins/core/core/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ dependencies {
2424
implementation(libs.commonmark)
2525
testImplementation(libs.junit4)
2626

27-
testRuntimeOnly(libs.junit5.jupiterVintage)
2827
testRuntimeOnly(project(":plugin-core:resources"))
2928
testRuntimeOnly(project(":plugin-core:sdk-codegen"))
3029
}

0 commit comments

Comments
 (0)