DslMarker not propagating properly in IDEA builds test tree incorrectly
Closed this issue · 9 comments
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
}
}
}
}
}
@sksamuel Yes, the error persists. Published a demo project: https://github.com/BorzdeG/bugs-kotest-2878
Upgrading the versions didn't fix the problem. Updated repository
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.
@BorzdeG I have played with your repo and I don't understand.
The same test in kotest shows the red build. Inside your repo it's green.
The versions are identical and the code is the same.
The problem seems to be in how the test report is generated: build/test-results/test/TEST-demo.DemoTest.xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="demo.DemoTest" tests="3" skipped="0" failures="1" errors="0" timestamp="2022-05-03T05:34:57" hostname="borz-mac.local" time="0.231">
<properties/>
<testcase name="(1, 1)" classname="demo.DemoTest" time="0.03"/>
<testcase name="(1, 2)" classname="demo.DemoTest" time="0.003">
<failure message="io.kotest.assertions.AssertionFailedError: expected:<2> but was:<1>" type="io.kotest.assertions.AssertionFailedError">io.kotest.assertions.AssertionFailedError: expected:<2> but was:<1>
CUT_OUT
</failure>
</testcase>
<testcase name="it - 0" classname="demo.DemoTest" time="0.635"/>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
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.