简体   繁体   中英

sbt test:compile does not compile all tests

I'm trying to run a single test class ThisIsTheClassTest.java in a Java Play project but fails and cannot seem to find the cause.

When I run test:compile the response is plain [success] Total time: 1 s, completed Jun 5, 2018 9:30:19 PM

But when using autocomplete to list all available test classes there is one missing.

It seems that it might be the filename itself (for whatever reason) as it all works well if I copy the entire code into another file ThisIsNotTheFile.java and run test:Compile. But even if I delete the entire file ThisIsTheClassTest.java and add it again it does not work.

If one of the classes did not compile I would not expect the answer [success] .

Is there a way to see skipped/failed/ignored compilations or at least additional logging?

代码可能在错误的目录中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM