Are there an option to skip tests with compilation errors? Just ignore them or treat them as failed?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
maven-compiler-pluginis responsible for compiling your tests during thetest-compilephase. This plugin is configured to fail the build if any test classes fail to compile. You could experiment with thefailOnErrorconfiguration. But I doubt you’ll get the results you expect. The compilation process stops immediately when it encounters a compilation error. So potentially issue free classes may not have been re-compiled. Therefore there will be no guarantee the.classfiles you execute during thetestphase will be ‘up to date’ with the corresponding.javasource files.