• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Maven SuiteCase several Tests

 
Ranch Hand
Posts: 1346
3
Netbeans IDE Spring Java
  • 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: 21002
128
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • 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: 1346
3
Netbeans IDE Spring Java
  • 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: 21002
128
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • 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.
 
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!