-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
π bugDefect / BugDefect / Bug
Description
π What did you see?
When doing sbt test
in test report target/test-reports/TEST-bdd.TestValidBDD.xml
I see lots of testcases with same name :
<testcase classname="bdd.TestValidBDD" name="(It is not a test it is a sbt.testing.SuiteSelector)" time="0.298">
<testcase classname="bdd.TestValidBDD" name="(It is not a test it is a sbt.testing.SuiteSelector)" time="0.097">
β What did you expect to see?
Previously (JUnit 4) I had detailed names, corresponding to scenario being tested, example :
<testcase classname="bdd.TestValidBDD" name="Authentication.Unauthenticated" time="0.289">
<testcase classname="bdd.TestValidBDD" name="Authentication.Authenticated with an invalid token" time="0.103">
π¦ Which tool/library version are you using?
SBT project
sbt plugin :
- addSbtPlugin("com.github.sbt.junit" % "sbt-jupiter-interface" % "0.15.0")
dependencies :
- junit BOM 5.13.4
- "io.cucumber" % "cucumber-junit-platform-engine" % "7.26.0" % Test,
- "com.github.sbt.junit" % "jupiter-interface" % JupiterKeys.jupiterVersion.value % Test,
- "org.junit.jupiter" % "junit-jupiter" % junitBom.key.value % Test,
- "org.junit.platform" % "junit-platform-suite" % junitBom.key.value % Test,
π¬ How could we reproduce it?
Create some scenarios and a Test file like :
import io.cucumber.junit.platform.engine.Constants
import org.junit.platform.suite.api.ConfigurationParameter
import org.junit.platform.suite.api.IncludeEngines
import org.junit.platform.suite.api.SelectPackages
import org.junit.platform.suite.api.Suite
@Suite
@IncludeEngines(Array("cucumber"))
@SelectPackages(Array("features")) // Load all *.feature files in the given package
@ConfigurationParameter(key = Constants.GLUE_PROPERTY_NAME, value = "glue")
@ConfigurationParameter(key = Constants.FILTER_TAGS_PROPERTY_NAME, value = "@valid")
class TestValidBDD {}
launch sbt test
look your test report file in target\test-report
π Any additional context?
No response
gaeljw
Metadata
Metadata
Assignees
Labels
π bugDefect / BugDefect / Bug