Skip to content

Conversation

FyiurAmron
Copy link
Contributor

Update data_driven_testing.md with info on custom naming via map

Update data_driven_testing.md with info on custom naming via map
@FyiurAmron FyiurAmron requested a review from a team as a code owner March 11, 2025 11:05
"blank" to " ",
)
) {
it.isBlank() shouldBe true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to better understand the gist of the example, should we include the output of the test?

Copy link
Contributor Author

@FyiurAmron FyiurAmron Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexCue987 TBH, there is no "output". The console output is just the tests passing. You mean like a screenshot from IDE showcasing the results:
image
?

Frankly, I think the sentence "The key will be used as the subtest name, and the value will be used as the actual it for the test." is self-explanatory. My intention here is to just showcase the idiom, because AFAIK this would be the place to document it, and I can't find any reference to the map-based withData c-tor anywhere in the "core" DDT docs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I concur. TY for documenting this feature.

@AlexCue987 AlexCue987 added this pull request to the merge queue Mar 13, 2025
Merged via the queue into kotest:master with commit 0260c25 Mar 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants