简体   繁体   中英

Tests dir is missing in my project

I (Git) pulled my (working) project on a different pc (on both pc's I'm working with Intellij-idea), I (Maven) compiled it but my tests directory is out of sync. Trying to run it I get " 0 test class found in package '' ".

Ideas?

As it turns out, the Tests directory was not in the same hierarchy as my code. The environment on my first pc was configured so it will bypass the issue and just run the tests as they are, but it is only a local bandage. So if you come across a problem of that sort, first make sure that you have the same hierarchy level (code and tests), otherwise Maven will not find and run the tests.

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