The Java project I am working on is a list of testcases written in Java for testing C++ code. So I want to run the testcases from the src directory in the test phase of the maven lifecycle. How do I configure the maven surefire plugin to achieve this.
Share
Since it is Java based tests that presumably will not be part of the production code, I suggest that you follow Maven’s standard directory layout and move the tests to the
src/test/javadirectory as usual (otherwise, the tests will be part of the binary file if someone executesmvn package).