Skip to content

Commit

Permalink
Remove file extension from dynamic test names
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Sep 30, 2022
1 parent 858417a commit fe37dfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ class VersionComparatorTest {
@TestFactory
fun `test versions sorting`() = testResources.resolve(
relative = "versions-comparison"
).listFiles()!!.asList().mapDynamicTest { file ->
).listFiles()!!.asList().mapDynamicTest(name = { it.nameWithoutExtension }) { file ->
val orderedVersions = readVersionsWithIntactOrder(file)
orderedVersions.shouldBeSorted()
}

@TestFactory
fun `test versions sorting through the sortWith function`() = testResources.resolve(
relative = "versions-comparison"
).listFiles()!!.asList().mapDynamicTest { file ->
).listFiles()!!.asList().mapDynamicTest(name = { it.nameWithoutExtension }) { file ->
val orderedVersions = readVersionsWithIntactOrder(file)
val fetcherResult = DependencyVersionsFetcher.Result.Success(
lastUpdateTimestampMillis = 0L,
Expand Down

0 comments on commit fe37dfa

Please sign in to comment.