initial commit

This commit is contained in:
hgranthorner
2026-08-04 10:12:15 -04:00
commit cb5a1d9555
26 changed files with 1792 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package dev.hgh
import com.intellij.testFramework.fixtures.BasePlatformTestCase
/**
* Validates that the headless test harness works end to end:
* a JDK is resolved, the IntelliJ Platform boots, and a fixture can be driven
* without launching an IDE.
*
* If this fails, no other test in the project can be trusted.
*/
class HarnessSmokeTest : BasePlatformTestCase() {
fun testPlatformBootsHeadlessly() {
val file = myFixture.configureByText("smoke.txt", "hello jai")
assertNotNull("fixture should create a PsiFile", file)
assertEquals("hello jai", file.text)
}
fun testRunningOnJava21OrLater() {
val major = Runtime.version().feature()
assertTrue(
"IntelliJ Platform test-framework is Java 21 bytecode; running on $major",
major >= 21,
)
}
}