开发者

How to prevent SBT from trying to execute abstract classes with JUnit test methods?

开发者 https://www.devze.com 2023-02-11 13:04 出处:网络
I\'m migrating a mixed Java/Scala project from Maven to SBT. When I run \"test\" I get lots of errors on classes that are abstract classes with JUnit test methods in them. They all have a name of the

I'm migrating a mixed Java/Scala project from Maven to SBT. When I run "test" I get lots of errors on classes that are abstract classes with JUnit test methods in them. They all have a name of the form Abstract*TestCas开发者_开发技巧e. Maven safely ignored these classes since their names don't start or end with the word Test and correctly executed their subclasses. How can I get SBT to behave the same way?


I raised a request for this behavior here.

0

精彩评论

暂无评论...
验证码 换一张
取 消