Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes sbt#121: Suite task naming no longer crashes; or mangles vintage test names #122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dji
Copy link

@dji dji commented Oct 25, 2024

Fixes (and tests!) the two related issues in #121:

  • In some situations @Suites were used, a RuntimeException would be thrown when trying to report the test status: Test class path.to.my.TestClass is not enclosed by path.to.my.SuiteClass
  • Junit 4 tests run as part of a suite had their names mangled

… Vintage tests in Suites have their names properly formatted.
@@ -13,6 +13,7 @@ object Dependencies {
val testInterface = "org.scala-sbt" % "test-interface" % testInterfaceVer
val junitJupiterParams = "org.junit.jupiter" % "junit-jupiter-params" % junitJupiterVer
val junitVintageEngine = "org.junit.vintage" % "junit-vintage-engine" % junitVintageVer
val junitPlatformSuite = "org.junit.platform" % "junit-platform-suite" % junitPlatformVer
Copy link
Author

Choose a reason for hiding this comment

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

Alternatively, only junit-platform-suite-api and junit-platform-suite-engine are actually needed, if you prefer more specific dependencies

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks!

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