question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DslMarker not propagating properly in IDEA builds test tree incorrectly

See original GitHub issue

kotest: 5.2.1 kotest plugin: 1.1.49-IC-213-EAP-SNAPSHOT IDEA: 2021.3.2

The test starts through GRADLE run Configuration

sample code:

import io.kotest.core.spec.style.DescribeSpec
import io.kotest.datatest.withData
import io.kotest.matchers.shouldBe

class DemoTest : DescribeSpec() {
	init {
		describe("desc - 0") {
			it("it - 0") {
				withData(
					1 to 1,
					1 to 2
				) { (x, y) ->
					x shouldBe y
				}
			}
		}
	}
}

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sksamuelcommented, Mar 15, 2022

You can only put withData inside containers, so it’s binding to the describe level. This is a bug in the sense that you shouldn’t be able to create a test like that.

On Tue, 15 Mar 2022 at 13:15, Viktor Alenkov @.***> wrote:

kotest: 5.2.1 kotest plugin: 1.1.49-IC-213-EAP-SNAPSHOT IDEA: 2021.3.2

sample code:

import io.kotest.core.spec.style.DescribeSpecimport io.kotest.datatest.withDataimport io.kotest.matchers.shouldBe class DemoTest : DescribeSpec() { init { describe(“desc - 0”) { it(“it - 0”) { withData( 1 to 1, 1 to 2 ) { (x, y) -> x shouldBe y } } } } }

[image: image] https://user-images.githubusercontent.com/2332528/158444640-1fbcd907-38dc-4082-9a44-e563df670052.png

— Reply to this email directly, view it on GitHub https://github.com/kotest/kotest/issues/2878, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFVSGXYCOM3XKR5MSTCGF3VADHUPANCNFSM5QZQIVKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

0reactions
stale[bot]commented, Jun 4, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kotlin 1.4 | Hacker News
- Ecosystem has moved nicely with Kotlin. Ktor and Ebean seem to be on board and pretty mature. - Null safety built in...
Read more >
spe-hui.pdf - Jeff Gray
This paper describes a grammar-driven technique to build a debugging ... particular DSL problem domains at the proper level of abstraction without depending ......
Read more >
WhatsNew 1.6 | Ktor Framework
Ktor http client with java engine uses incorrect timeout. ... Kotlin/Native macOS target test build failed with an exception, exit code 139.
Read more >
Kotlin Language Documentation - CodeChef
how you can build and run very small Web applications in Kotlin. ... x and y are automatically cast to non-nullable after null...
Read more >
Reflective Embedding of Domain-Specific Languages
cial for certain problem domains – so-called domain-specific ... from different domains cannot be correctly resolved at the level of a.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found