Skip to content

Commit 7e6368a

Browse files
committed
feat: Run Ultimate UI tests on GHA
1 parent 1427007 commit 7e6368a

8 files changed

+155
-20
lines changed

.github/workflows/dialogs.information_settings.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
Xvfb -ac :99 -screen 0 1920x1080x24 &
2626
cd src/test-project
2727
chmod +x gradlew
28-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
28+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
2929
- uses: actions/upload-artifact@v2
3030
with:
3131
name: ${{ runner.os }}-test-reports
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
cd src/test-project
6060
chmod +x gradlew
61-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
61+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
6262
- uses: actions/upload-artifact@v2
6363
with:
6464
name: ${{ runner.os }}-test-reports
@@ -91,7 +91,7 @@ jobs:
9191
run: |
9292
cd src\test-project
9393
chmod +x gradlew.bat
94-
.\gradlew.bat clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
94+
.\gradlew.bat clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
9595
shell: powershell
9696
- uses: actions/upload-artifact@v2
9797
with:
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Java CI with Gradle - dialogs.information, dialogs.settings ULTIMATE
5+
6+
on:
7+
workflow_run:
8+
workflows: [ "Java CI with Gradle - dialogs.information, dialogs.settings" ]
9+
types:
10+
- completed
11+
12+
jobs:
13+
build-linux:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 17
22+
- name: Run integration tests
23+
env:
24+
GPG_PASSPHRASE: ${{ secrets.IDEA_KEY_PASSPHRASE }}
25+
run: |
26+
echo -n "$GPG_PASSPHRASE" | gpg --decrypt --passphrase-fd 0 --pinentry-mode loopback --output src/test-project/idea_license_token/idea.key src/test-project/idea_license_token/idea.key.gpg
27+
export DISPLAY=:99.0
28+
Xvfb -ac :99 -screen 0 1920x1080x24 &
29+
sleep 10
30+
cd src/test-project
31+
chmod +x gradlew
32+
./gradlew clean integrationUITestUltimate --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
33+
- uses: actions/upload-artifact@v2
34+
with:
35+
name: ${{ runner.os }}-test-reports
36+
path: src/test-project/build/reports/tests/test
37+
if: always()
38+
- name: Archiving screenshots
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: ${{ runner.os }}-screenshots
42+
path: src/test-project/build/screenshots/*
43+
if: always()
44+
- name: Archiving StepLogger logs
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: ${{ runner.os }}-steplogger-logs
48+
path: src/test-project/build/test-results/*
49+
if: always()
50+
51+
52+
build-macos:
53+
runs-on: macos-11
54+
55+
steps:
56+
- uses: actions/checkout@v2
57+
- name: Set up JDK 17
58+
uses: actions/setup-java@v1
59+
with:
60+
java-version: 17
61+
- name: Run integration tests
62+
env:
63+
GPG_PASSPHRASE: ${{ secrets.IDEA_KEY_PASSPHRASE }}
64+
run: |
65+
echo -n "$GPG_PASSPHRASE" | gpg --decrypt --passphrase-fd 0 --pinentry-mode loopback --output src/test-project/idea_license_token/idea.key src/test-project/idea_license_token/idea.key.gpg
66+
export DISPLAY=:99.0
67+
Xvfb -ac :99 -screen 0 1920x1080x24 &
68+
sleep 10
69+
cd src/test-project
70+
chmod +x gradlew
71+
./gradlew clean integrationUITestUltimate --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
72+
- uses: actions/upload-artifact@v2
73+
with:
74+
name: ${{ runner.os }}-test-reports
75+
path: src/test-project/build/reports/tests/test
76+
if: always()
77+
- name: Archiving screenshots
78+
uses: actions/upload-artifact@v2
79+
with:
80+
name: ${{ runner.os }}-screenshots
81+
path: src/test-project/build/screenshots/*
82+
if: always()
83+
- name: Archiving StepLogger logs
84+
uses: actions/upload-artifact@v2
85+
with:
86+
name: ${{ runner.os }}-steplogger-logs
87+
path: src/test-project/build/test-results/*
88+
if: always()
89+
90+
91+
build-windows:
92+
runs-on: windows-latest
93+
94+
steps:
95+
- uses: actions/checkout@v2
96+
- name: Set up JDK 17
97+
uses: actions/setup-java@v1
98+
with:
99+
java-version: 17
100+
- name: Run integration tests
101+
env:
102+
GPG_PASSPHRASE: ${{ secrets.IDEA_KEY_PASSPHRASE }}
103+
run: |
104+
echo -n "$GPG_PASSPHRASE" | gpg --decrypt --passphrase-fd 0 --pinentry-mode loopback --output src\test-project\idea_license_token\idea.key src\test-project\idea_license_token\idea.key.gpg
105+
export DISPLAY=:99.0
106+
Xvfb -ac :99 -screen 0 1920x1080x24 &
107+
sleep 10
108+
cd src\test-project
109+
chmod +x gradlew.bat
110+
.\gradlew.bat clean integrationUITestUltimate --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.*
111+
shell: powershell
112+
- uses: actions/upload-artifact@v2
113+
with:
114+
name: ${{ runner.os }}-test-reports
115+
path: src\test-project\build\reports\tests\test
116+
if: always()
117+
- name: Archiving screenshots
118+
uses: actions/upload-artifact@v2
119+
with:
120+
name: ${{ runner.os }}-screenshots
121+
path: src\test-project\build\screenshots\*
122+
if: always()
123+
- name: Archiving StepLogger logs
124+
uses: actions/upload-artifact@v2
125+
with:
126+
name: ${{ runner.os }}-steplogger-logs
127+
path: src\test-project\build\test-results\*
128+
if: always()

.github/workflows/dialogs.project_manipulation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
Xvfb -ac :99 -screen 0 1920x1080x24 &
2626
cd src/test-project
2727
chmod +x gradlew
28-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.project_manipulation.*
28+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.project_manipulation.*
2929
- uses: actions/upload-artifact@v2
3030
with:
3131
name: ${{ runner.os }}-test-reports
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
cd src/test-project
6060
chmod +x gradlew
61-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.project_manipulation.*
61+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.project_manipulation.*
6262
- uses: actions/upload-artifact@v2
6363
with:
6464
name: ${{ runner.os }}-test-reports
@@ -95,7 +95,7 @@ jobs:
9595
run: |
9696
cd src\test-project
9797
chmod +x gradlew.bat
98-
.\gradlew.bat clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.project_manipulation.*
98+
.\gradlew.bat clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.project_manipulation.*
9999
shell: powershell
100100
- uses: actions/upload-artifact@v2
101101
with:

.github/workflows/dialogs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
Xvfb -ac :99 -screen 0 1920x1080x24 &
2626
cd src/test-project
2727
chmod +x gradlew
28-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.FlatWelcomeFrameTest
28+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.FlatWelcomeFrameTest
2929
- uses: actions/upload-artifact@v2
3030
with:
3131
name: ${{ runner.os }}-test-reports
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
cd src/test-project
6060
chmod +x gradlew
61-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.FlatWelcomeFrameTest
61+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.FlatWelcomeFrameTest
6262
- uses: actions/upload-artifact@v2
6363
with:
6464
name: ${{ runner.os }}-test-reports
@@ -91,7 +91,7 @@ jobs:
9191
run: |
9292
cd src\test-project
9393
chmod +x gradlew.bat
94-
.\gradlew.bat clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.FlatWelcomeFrameTest
94+
.\gradlew.bat clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.FlatWelcomeFrameTest
9595
shell: powershell
9696
- uses: actions/upload-artifact@v2
9797
with:

.github/workflows/mainidewindow.idestatusbar_screenshot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
Xvfb -ac :99 -screen 0 1920x1080x24 &
4242
cd src/test-project
4343
chmod +x gradlew
44-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.idestatusbar.*
44+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.idestatusbar.*
4545
- uses: actions/upload-artifact@v2
4646
with:
4747
name: ${{ runner.os }}-test-reports
@@ -74,7 +74,7 @@ jobs:
7474
run: |
7575
cd src/test-project
7676
chmod +x gradlew
77-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.mainidewindow.idestatusbar.*
77+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.mainidewindow.idestatusbar.*
7878
- uses: actions/upload-artifact@v2
7979
with:
8080
name: ${{ runner.os }}-test-reports
@@ -107,7 +107,7 @@ jobs:
107107
run: |
108108
cd src\test-project
109109
chmod +x gradlew.bat
110-
.\gradlew.bat clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.mainidewindow.idestatusbar.*
110+
.\gradlew.bat clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.mainidewindow.idestatusbar.*
111111
shell: powershell
112112
- uses: actions/upload-artifact@v2
113113
with:

.github/workflows/mainidewindow.menubar.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
Xvfb -ac :99 -screen 0 1920x1080x24 &
2626
cd src/test-project
2727
chmod +x gradlew
28-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.menubar.*
28+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.menubar.*
2929
- uses: actions/upload-artifact@v2
3030
with:
3131
name: ${{ runner.os }}-test-reports
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
cd src/test-project
6060
chmod +x gradlew
61-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.menubar.*
61+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.menubar.*
6262
- uses: actions/upload-artifact@v2
6363
with:
6464
name: ${{ runner.os }}-test-reports
@@ -91,7 +91,7 @@ jobs:
9191
run: |
9292
cd src\test-project
9393
chmod +x gradlew.bat
94-
.\gradlew.bat clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.menubar.*
94+
.\gradlew.bat clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.menubar.*
9595
shell: powershell
9696
- uses: actions/upload-artifact@v2
9797
with:

.github/workflows/mainidewindow.toolwindowspane.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
Xvfb -ac :99 -screen 0 1920x1080x24 &
2626
cd src/test-project
2727
chmod +x gradlew
28-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.toolwindowspane.*
28+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.toolwindowspane.*
2929
- uses: actions/upload-artifact@v2
3030
with:
3131
name: ${{ runner.os }}-test-reports
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
cd src/test-project
6060
chmod +x gradlew
61-
./gradlew clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.toolwindowspane.*
61+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.toolwindowspane.*
6262
- uses: actions/upload-artifact@v2
6363
with:
6464
name: ${{ runner.os }}-test-reports
@@ -91,7 +91,7 @@ jobs:
9191
run: |
9292
cd src\test-project
9393
chmod +x gradlew.bat
94-
.\gradlew.bat clean test --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.toolwindowspane.*
94+
.\gradlew.bat clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.toolwindowspane.*
9595
shell: powershell
9696
- uses: actions/upload-artifact@v2
9797
with:

CONTRIBUTING.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,20 @@ $ ./gradlew publishToMavenLocal
5252

5353
## Running Tests
5454

55-
To exeute the JUnit 5 tests run the following command:
55+
To execute the JUnit 5 tests with Community version of IntelliJ run the following command:
5656

5757
```
5858
$ cd ./src/test-project
59-
$ ./gradlew clean test
59+
$ ./gradlew clean integrationUITest
6060
```
6161

62+
To execute the JUnit 5 tests with Ultimate version of IntelliJ run the following command:
63+
64+
```
65+
$ cd ./src/test-project
66+
$ ./gradlew clean integrationUITestUltimate
67+
```
68+
kj
6269

6370
## Reporting Issues
6471

0 commit comments

Comments
 (0)