![](/img/trans.png)
[英]How maven pom.xml identifies the testng test cases in a non-standard project structure?
[英]How to use Maven to test code with a non-standard file structure?
我有很多学生的代码要测试,他们的代码结构如下:
Project_Dir -> src -> edu -> collegeName-> courseName -> assignmentName -> (their classes here)
和测试:
Project_Dir -> src -> edu -> collegeName-> courseName -> assignmentName -> tests -> (their tests here)
您会注意到这不符合以下典型惯例:
${basedir}/src/main/java
和
${basedir}/src/test
当我尝试使用maven测试测试他们的代码时,它找不到任何代码(源代码或测试)
是否有一些命令行参数可以用来告诉maven在正确的位置查找源代码和测试? 或者是否有某种方法可以放弃修改后的POM文件来告诉maven同样的事情?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.