Issue in Running Unit test from Maven

Hi… I am getting similar fault. When I run “mvn test” command , I face below sentence at the end of the screen.

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test

I think, this plugin causes the test failure. I tried another versons, bu stil I got the sama error.

I will be very appreciated, Iif someone wiil help me to fix the problem.

Thank you!

Hi @ali_veli,

Welcome to the MongoDB Community forums :star2:

Could you try doing some tweaking in your pom.xml file

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-M3</version>
                <configuration>
                       <testFailureIgnore>true</testFailureIgnore>
                </configuration>
</plugin>

I hope it helps!

Thanks,
Kushagra

Thank you for your kind help Kushagra.

I understood that my problem iwas not maven dependency files… The problem was my JAVA codes codescorrosponding to unit test files… I am recovering them file by file, I am getting more succsess while performing unit test…

Kind regards

1 Like