I have been using TestNG + Arquillian for a while. Both are great frameworks.
I am able to successfully run my test through my IDE or maven command line without any issues.
I would like to package all the page objects, tests and dependencies in a single jar which i was able to do using maven. I was also able to see my page objects and tests inside the jar.
Whenever I run this below command , testng does not execute anything and passes all the tests within few milliseconds. (usually the test will take 1 min to complete - also I have few debug statements to print - they are also not displayed)
java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest
I was curious - enabled the verbose level.
java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest -verbose 10
I could not figure out what could be causing this? Why does TestNG behave like this - without even throwing any exception?
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
My first guess is that your uber jar [ jar with dependencies ] doesn't contain your test classes at all.
TestNG is not finding anything and that perhaps is why it doesn't execute anything.
I believe that if you use Maven assembly plugin, it doesnt package the tests in the jar.
You might want to rebuild your uber jar by reading this SO thread : https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven
On Fri, Dec 15, 2017 at 8:48 PM, Vinoth Selvaraj <[hidden email]> wrote: