-
Notifications
You must be signed in to change notification settings - Fork 270
/
TestFrameworkType.kt
30 lines (26 loc) · 1.72 KB
/
TestFrameworkType.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.platform.gradle
import org.jetbrains.intellij.platform.gradle.models.Coordinates
/**
* Definition of Test Framework types available for writing tests for IntelliJ Platform plugins.
*
* @param coordinates Maven coordinates of test framework artifact.
*/
sealed class TestFrameworkType(vararg val coordinates: Coordinates) {
object Platform : TestFrameworkType(Coordinates("com.jetbrains.intellij.platform", "test-framework"))
object JUnit5 : TestFrameworkType(Coordinates("com.jetbrains.intellij.platform", "test-framework-junit5"))
object Bundled : TestFrameworkType(Coordinates("bundled", "lib/testFramework.jar"))
object Metrics : TestFrameworkType(
Coordinates("com.jetbrains.intellij.tools", "ide-metrics-benchmark"),
Coordinates("com.jetbrains.intellij.tools", "ide-metrics-collector"),
Coordinates("com.jetbrains.intellij.tools", "ide-util-common"),
)
object Plugin {
object Go : TestFrameworkType(Coordinates("com.jetbrains.intellij.go", "go-test-framework"))
object Ruby : TestFrameworkType(Coordinates("com.jetbrains.intellij.idea", "ruby-test-framework"))
object Java : TestFrameworkType(Coordinates("com.jetbrains.intellij.java", "java-test-framework"))
object JavaScript : TestFrameworkType(Coordinates("com.jetbrains.intellij.javascript", "javascript-test-framework"))
object Maven : TestFrameworkType(Coordinates("com.jetbrains.intellij.maven", "maven-test-framework"))
object ReSharper : TestFrameworkType(Coordinates("com.jetbrains.intellij.resharper", "resharper-test-framework"))
}
}