I would like to execute a java class which consists a main method (this creates a testng.xml file) before my test phase starts (which consists of class with @Test methods).
Is it possible to execute this class before test phase using any command of maven? I want to run my tests using jenkins so I need to provide a goal which can perform this task.
Currently I use command "mvn test" to execute my tests.
Thanks, Sunil