Skip to content

Commit

Permalink
Remove leading . from package inference (#1142)
Browse files Browse the repository at this point in the history
Fixes tests erronously not failing on junit5.
  • Loading branch information
restingbull authored Mar 20, 2024
1 parent 14ea5f1 commit 10452e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/test/kotlin/io/bazel/kotlin/KotlinJvmKspAssertionTest.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package io.bazel.kotlin

import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith
import org.junit.runners.JUnit4

@RunWith(JUnit4::class)
class KotlinJvmKspAssertionTest: KotlinAssertionTestCase("src/test/data/jvm/ksp") {

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/kt_junit5_test.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("//kotlin:jvm.bzl", _kt_jvm_test = "kt_jvm_test")

def kt_jvm_test(name, args = [], deps = [], runtime_deps = [], **kwargs):
test_package = native.package_name().replace("src/test/kotlin", "").replace("/", ".")
test_package = native.package_name().replace("src/test/kotlin/", "").replace("/", ".")

_kt_jvm_test(
name = name,
Expand Down

0 comments on commit 10452e1

Please sign in to comment.