8000 GitHub - a-oleynik/testng-workshop: TestNG examples for IT talk "JUnit 5 vs. TestNG 7"
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

a-oleynik/testng-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestNG 7.10.2 examples for IT Talk "JUnit vs. TestNG".

Slides can be found TestNG vs. JUnit 4

The webinar is here TestNG vs. JUnit 4 IT talk, DataArt Wrocław

To run the project and generate the reports execute cmd:

        mvn clean test

To run the particular test execute cmd:

        mvn clean test -Dtest={testClass}#{testMethod}

or

        mvn clean test -Dtest={testClass}

To execute tests against some tags execute cmd:

        mvn clean test -Dgroups=Regression,Smoke

Run multiple test classes:

        mvn clean test -Dtest=TestClass1,TestClass2

Run all test methods that match pattern 'testPattern*' from a test class:

        mvn clean test -Dtest=TestClass1#testPattern*

Run all test methods match pattern 'testPattern1*' and 'testPattern2*' from a test class:

        mvn clean test -Dtest=TestClass1#testPattern1*+testPattern2*

Compile, test, package and install/copy of built .jar/.war file into your local Maven repository:

        mvn clean install

Compile, package and install/copy of built .jar/.war file into your local Maven repository but skip tests:

        mvn clean install -DskipTests

To run a concrete testng.xml:

        mvn clean test -Dsurefire.suiteXmlFiles=src/test/resources/testng1.xml

About

TestNG examples for IT talk "JUnit 5 vs. TestNG 7"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0