Running jUnit on Maven Project, Why do I have to run Maven Test Lifecycle first?
Running jUnit on Maven Project, Why do I have to run Maven Test Lifecycle first?
If I open my project and then client on run junit lets my project will get a number of errors that I could not find the resources but if I go into the maven panel and click on "run test" then go back to run my junit test it works... I am scare the junit test maynot be testing the right versions.
I just confirmed that it is running the right version of the code... so why do I have to click in the Maven Panel Test first?
请先登录再写评论。
As far as I see you say that usual test run fails because particular resource files are not located at right places during the test execution. There are two possible scenarios - your IJ is not configured in a way that target resources are copied into target output locations and are available at classpath of the unit tests process; there is a bug at our compile process.
Denis
how can I test to see which one it is
You can provide a sample project which illustrates the problem
Denis