• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Maven SuiteCase several Tests  RSS feed

 
Ranch Hand
Posts: 1329
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a Java app using a SuiteTest, this one at the moment only contains one test. In the next POM extract there is a apiTest.Example1Test

refering to the first test file but what if UI have two test files like apiTest.Example2Test

?



 
Bartender
Posts: 20743
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Isaac Ferguson wrote:Hi all,
[/b] refering to the first test file but what if UI have two test files like [b]apiTest.Example2Test



I can't make any sense of this statement at all.
 
Angus Ferguson
Ranch Hand
Posts: 1329
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry looks like I meesed it up!

I just would like to understand the pom.xml generated.

1)Is this automatically generated as main entry point?



2) apiTest.Example1Test is one of the tests included in the SuiteTests. Is it automatically generated? Now I only am calling one test from the suite but what happens if I call several tests. Gets the Pom.ml automatically updated?



 
Tim Holloway
Bartender
Posts: 20743
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're still looking for a "program" to run the tests. As I said, Maven is the program that runs the tests (via its sureFire Junit mojo).

The surefire mojo automatically compiles and executes every test class it finds under src/test/resources when you run the Maven "test" goal, whether directly ("mvn test") or implicitly (as for example with "mvn assembly"). In fact, I don't have any includes elements in my POMs, only the bare minimum plugin information for surefire.

No application executable is ever created for surefire testing. Surefire invokes the test classes directly.
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!