Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip or ignore execution of tests in TestNG

Tags:

java

testng

I am writing test in java using TestNG.

I want to skip or ignore a all class methods using conditional inside the class file.

In ruby, I have followed this How to skip certain tests with Test::Unit

How can I do in java?

like image 701
Galet Avatar asked Nov 02 '15 11:11

Galet


1 Answers

You can ignore test method using the annotation @Test(enabled = false)

like image 169
hasnae Avatar answered Sep 23 '22 04:09

hasnae