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
But when I try to run single test cases with '.' or ',' -chars in their name, I get utest.NoSuchTestException -error.
This one runs OK:
mill show testexplib.test.testOnly -- TestExp.BugTests."1 foo bar"
[1/1] show > [85/85] testexplib.test.testOnly
******************** Setting up BugTestFramework ********************
------------------- Running Tests TestExp.BugTests.1 foo bar -------------------
+ TestExp.BugTests.1 foo bar 6ms
******************** Tearing down BugTestFramework ********************
[
"Tests: 1, Passed: 1, Failed: 0",
[
{
"fullyQualifiedName": "TestExp.BugTests",
"selector": "TestExp.BugTests.1 foo bar",
"duration": 6,
"status": "Success"
}
]
]
But these fail:
mill show testexplib.test.testOnly -- TestExp.BugTests."2 foo, bar"
[1/1] show > [85/85] testexplib.test.testOnly
******************** Setting up BugTestFramework ********************
utest.NoSuchTestException: [ bar]
utest.NoSuchTestException: [ bar]
at utest.runner.BaseRunner.tasks(BaseRunner.scala:73)
at mill.testrunner.TestRunnerUtils$.runTestFramework0(TestRunnerUtils.scala:123)
at mill.testrunner.TestRunnerMain0$.main0(TestRunnerMain0.scala:38)
at mill.testrunner.TestRunnerMain0.main0(TestRunnerMain0.scala)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at mill.testrunner.entrypoint.TestRunnerMain.main(TestRunnerMain.java:42)
1 targets failed
show 1 targets failed
testexplib.test.testOnly Test execution failed.
mill show testexplib.test.testOnly -- TestExp.BugTests."3 foo.txt"
[1/1] show > [85/85] testexplib.test.testOnly
******************** Setting up BugTestFramework ********************
------------------- Running Tests TestExp.BugTests.3 foo.txt -------------------
utest.NoSuchTestException: [3 foo]
utest.NoSuchTestException: [3 foo]
at utest.TestRunner$.runAsync(TestRunner.scala:60)
at utest.runner.BaseRunner.runSuite(BaseRunner.scala:173)
at utest.runner.BaseRunner.$anonfun$makeTask$1(BaseRunner.scala:184)
at utest.runner.Task.execute(Task.scala:20)
at mill.testrunner.TestRunnerUtils$.runTestFramework0(TestRunnerUtils.scala:142)
at mill.testrunner.TestRunnerMain0$.main0(TestRunnerMain0.scala:38)
at mill.testrunner.TestRunnerMain0.main0(TestRunnerMain0.scala)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at mill.testrunner.entrypoint.TestRunnerMain.main(TestRunnerMain.java:42)
1 targets failed
show 1 targets failed
testexplib.test.testOnly Test execution failed.
Please fix the test case name parsing or add documentation how to escape special characters like '.', ','in test names (there may also be others, I just found these two).
Used uTest is v 0.8.2 and scala v 2.13.12.
The text was updated successfully, but these errors were encountered:
I have this simplified test object:
When I run all tests, they all run OK:
But when I try to run single test cases with '.' or ',' -chars in their name, I get
utest.NoSuchTestException
-error.This one runs OK:
But these fail:
Please fix the test case name parsing or add documentation how to escape special characters like '.', ','in test names (there may also be others, I just found these two).
Used uTest is v 0.8.2 and scala v 2.13.12.
The text was updated successfully, but these errors were encountered: