Running maven integration test inside docker container

前端 未结 1 1608
天命终不由人
天命终不由人 2021-01-06 22:02

I am using dockerfile-maven plugin to move my jar file inside docker container before running integration testing. But mvn verify command builds the images and run integrati

相关标签:
1条回答
  • 2021-01-06 22:20

    Accessibility error message :

    java.lang.IllegalAccessException: Class org.testng.internal.MethodInvocationHelper can not access a member of class IntegrationTestIT with modifiers "public"

    You have to make your class public to run tests :

    public class IntegrationTestIT {
    ...
    

    Sequencing issue :

    If your integration tests are running in the integration-test phase, you can force the execution of the docker plugin during the pre-integration-test phase :

    <execution>
        ...
        <phase>pre-integration-test</phase>
    </execution>
    
    0 讨论(0)
提交回复
热议问题