Skip to content

Commit dc47f47

Browse files
committed
Add testFramework dependency and --stacktrace to CI for diagnostics
- Add testFramework(TestFrameworkType.Platform) to dependencies — required by IntelliJ Platform Gradle Plugin 2.x for test sandbox setup - Add --stacktrace to all Gradle commands in CI for better error reporting https://claude.ai/code/session_015LpmjAt17XD582hZ9TPLCv
1 parent 3a2c2e9 commit dc47f47

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ jobs:
4040
run: chmod +x gradlew
4141

4242
- name: Build plugin
43-
run: ./gradlew buildPlugin
43+
run: ./gradlew buildPlugin --stacktrace
4444

4545
- name: Run tests
46-
run: ./gradlew test
46+
run: ./gradlew test --stacktrace
4747

4848
- name: Upload test results
4949
if: always()
@@ -84,10 +84,10 @@ jobs:
8484
run: chmod +x gradlew
8585

8686
- name: Verify plugin descriptor
87-
run: ./gradlew verifyPluginConfiguration
87+
run: ./gradlew verifyPluginConfiguration --stacktrace
8888

8989
- name: Build plugin distribution
90-
run: ./gradlew buildPlugin
90+
run: ./gradlew buildPlugin --stacktrace
9191

9292
- name: Upload plugin artifact
9393
uses: actions/upload-artifact@v4

review-plugin/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies {
2323
intellijIdeaCommunity("2024.1")
2424
pluginVerifier()
2525
instrumentationTools()
26+
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
2627
}
2728
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
2829
testImplementation(kotlin("test"))

0 commit comments

Comments
 (0)