You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing similar problems as #54 and #87, where TaskName is expecting the suite name to make up the first part of class names - likely as this code was first written for @Nested classes.
java.lang.RuntimeException: Test class path.to.my.TestClass is not enclosed by path.to.my.SuiteClass
#87 wasn't a complete fix as it only dealt with ClassSource test sources and not MethodSource ones.
Even with this fixed though, vintage test names were still being mangled. Where I would expect path.to.my.TestClass#testMethod with highlighting, I was seeing path.to.my.TestClasstestMethod(path.to.my.TestClass).
The problem is that when we chose a naming function based on engine that ran the test, we assume that a TestDescriptor has the Jupiter or Vintage engine in the first segment. In a suite though the Suite engine is actually the first segment, and Jupiter or Vintage is second.
The text was updated successfully, but these errors were encountered:
dji
added a commit
to dji/sbt-jupiter-interface
that referenced
this issue
Oct 25, 2024
I'm seeing similar problems as #54 and #87, where
TaskName
is expecting the suite name to make up the first part of class names - likely as this code was first written for@Nested
classes.java.lang.RuntimeException: Test class path.to.my.TestClass is not enclosed by path.to.my.SuiteClass
#87 wasn't a complete fix as it only dealt with
ClassSource
test sources and notMethodSource
ones.Even with this fixed though, vintage test names were still being mangled. Where I would expect
path.to.my.TestClass#testMethod
with highlighting, I was seeingpath.to.my.TestClasstestMethod(path.to.my.TestClass)
.The problem is that when we chose a naming function based on engine that ran the test, we assume that a
TestDescriptor
has the Jupiter or Vintage engine in the first segment. In a suite though the Suite engine is actually the first segment, and Jupiter or Vintage is second.The text was updated successfully, but these errors were encountered: