Define, Share and Automate your tests / specifications

Setup your project
Here is the most convenient way to setup your project for Tmar use :
-
Create your first test file using menu « Tmar / New specification… » :

-
Create your first test file using menu « Tmar / New specification… » :

-
a new file named « tmar.config » will be created in « src/test/resources/tmar/tmar.config »
-
the tmar folders structure will be created in « src/test/resources/tmar/ »
-
Let Tmar eclipse activate it-self for your project :

-
the « .project » file will be updated to add nature « org.jspresso.contrib.sjsplugin.tmar.nature »
-
Let Tmar eclipse update your project’s maven configuration :

-
the « pom.xml » will be updated to add jspresso repository :

-
… and to add tmar dependency :

-
Choose your first specification file name :

-
Write your first test ! :

-
Generate the groovy test class and method by choosing menu « Tmar / Open Tmar method… »

-
Choose the test method name, the super class, a tmar test template…NB : Tmar eclipse will helps further if you choose Tmar4Junit or Tmar4Spock

-
Let Tmar eclipse update your project’s maven configuration :

-
The « pom.xml » will be updated to add JUnit or TestNG or Spock dependencies :

-
Let Tmar eclipse update your project’s maven configuration for command-line test running :

-
Let Tmar eclipse update your project’s maven configuration for command-line test running :

-
Complete the groovy test...

In this example, just replace x by 0 in « tmar.value = x » !

-
Check that your project is properly installed by launching the test using menu
« Tmar / Run Tmar test… » :

-
Wait until your test is finished !

-
If your project goes something like this.. your project is properly installed !
