There are multiple way to skip the test as below:
1 . “@Test(enabled=false)” : this will skip the test but need to compile the code before run .
2. You can crate the group with name “testexclusion” and use that group for any test in testng.xml as part of test exclusion.