Skip to content

Commit

Permalink
Enforce junit4
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Oct 3, 2024
1 parent 874a4b0 commit cf6978c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ import foundry.tracing.ValueType
import foundry.tracing.model.newTagBuilder
import java.time.Instant
import okio.ByteString
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4

@RunWith(JUnit4::class)
class SkateTraceReporterTest : BasePlatformTestCase() {

override fun setUp() {
Expand All @@ -35,6 +39,7 @@ class SkateTraceReporterTest : BasePlatformTestCase() {
settings.isTracingEnabled = false
}

@Test
fun testSpanCreatedWithCorrectTags() {
val traceTags =
newTagBuilder().apply {
Expand Down Expand Up @@ -77,6 +82,7 @@ class SkateTraceReporterTest : BasePlatformTestCase() {
}
}

@Test
fun testSpanNotCreatedWhenSpanDataIsEmpty() {
val listOfSpans =
SkateTraceReporter(project)
Expand All @@ -92,6 +98,7 @@ class SkateTraceReporterTest : BasePlatformTestCase() {
assertThat(listOfSpans).isNull()
}

@Test
fun testSpanNotCreatedWhenIdeVersionEmpty() {
val listOfSpans =
SkateTraceReporter(project)
Expand Down

0 comments on commit cf6978c

Please sign in to comment.