How do I run a selenium test using maven from the command line?

后端 未结 4 1788
再見小時候
再見小時候 2020-12-15 11:02

I currently use Eclipse as my Java IDE and I use Maven. I click the run button and it is able to run a Selenium Java test I wrote.

I then proceeded to install Maven

4条回答
  •  佛祖请我去吃肉
    2020-12-15 11:31

    I would recommend using Maven Failsafe (for integration tests), or Surefire (for unit tests).

    
        org.apache.maven.plugins
        maven-failsafe-plugin
        2.12
        
            
                default
                
                    integration-test
                    verify
                
            
        
    
    

提交回复
热议问题