Hello 
I'm facing a problem with maven and testNG tests. I have a maven project for UI tests and I use selenium and testNG. I also have a testng.xml.
All I do on the terminal is "mvn clean test" and they all run okay.
My bitbucket-pipelines.yml:
image: atlassian/default-image:2
pipelines:
branches:
feature/*:
- step:
script:
- mvn --version
- apt-get update
- apt-get upgrade -y
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- yes | apt-get install ./google-chrome-stable_current_amd64.deb -f
- apt-get install -y testng
- mvn clean test
The "mvn clean test" runs properly until it gets messed up with the "@BeforeClass, @AfterClass, etc", methods... It seems like it replicates them because it has no notion of the testng.xml file.
I tried to run the testng.xml but no success at all...
What might this be? Thanks.