scalatest / scalatest-maven-plugin

ScalaTest Maven Plugin
Apache License 2.0
34 stars 61 forks source link

testNGConfigFiles not working #7

Closed sashaostr closed 2 years ago

sashaostr commented 10 years ago

testNGConfigFiles parameter goes to the wrong place - it passes to the org.scalatest.tools.Runner to -t param instead -b as said in http://www.scalatest.org/user_guide/using_the_runner#selectingSuitesAndTests. I tried to run the Runner directly changing plugin call to the Runner from -t to -b and it works. Thanks!

bvenners commented 10 years ago

Thanks for reporting this. We changed -t to -b for TestNG in Runner quite a while back and didn't notice the maven plugin was still using -t.

sashaostr commented 10 years ago

With pleasure, thank you guys for creating the plugin for us. I committed fix in the pull request.

ganeshm25 commented 7 years ago

I am trying to get scalatest maven plugin working with testngxml. in my project testng xml is at /src/test/resources/testng.xml here is what my scala plugin snippet is:

org.scalatest scalatest-maven-plugin ${scalatest-maven-plugin.version} ${project.build.directory}/surefire-reports . test-suite.txt test test testng_smoke.xml
cheeseng commented 2 years ago

@sashaostr @bvenners The changes seems to be in master branch already, I think we can close this old issue.