Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared tests #981

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make tests in vim-engine visible to IdeaVim
  • Loading branch information
lippfi committed Aug 30, 2024
commit cb2f6cc6ba3a6eb8f8f0d5aac60f3c4e2deb06bc
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ dependencies {
testFixturesImplementation("org.junit.jupiter:junit-jupiter-api:5.10.3")
testFixturesImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.3")
testFixturesImplementation("org.junit.jupiter:junit-jupiter-params:5.10.3")
testImplementation(project(":vim-engine", "testArtifacts"))

// Temp workaround suggested in https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-faq.html#junit5-test-framework-refers-to-junit4
// Can be removed when IJPL-159134 is fixed
Expand Down
10 changes: 10 additions & 0 deletions vim-engine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ val sourcesJarArtifacts by configurations.registering {
}
}

val testArtifacts: Configuration by configurations.creating {
extendsFrom(configurations.testImplementation.get())
}

val testJar by tasks.creating(Jar::class) {
archiveClassifier.set("tests")
from(sourceSets.test.get().output)
}

val kotlinVersion: String by project
val kotlinxSerializationVersion: String by project

Expand Down Expand Up @@ -109,6 +118,7 @@ java {
}

artifacts.add(sourcesJarArtifacts.name, tasks.named("sourcesJar"))
artifacts.add(testArtifacts.name, tasks.named("testJar"))

val spaceUsername: String by project
val spacePassword: String by project
Expand Down