title: TestNG jar package test errors not detected by CI/CD pipeline
body: <p>I'm running several TestNG tests in a project with Maven, but instead of executing mvn install or mvn test, I'm generating a jar file with dependencies. When I run it from GitLab CI/CD pipeline, if I run it with mvn and the test fails, the error is detected and the stage fails, but if I run it from the jar, the stage succeeds. Is there any way to detect the failure with the jar or is it the common behavior for jar executions?</p>