How to skip Junit for some java classes using mavan?

Viewed 26

I have some classes for which I dont have to write junit classes so I want to skip Junit for some Java classes and want to increase Junit code coverage using Maven. For example, I have placed all Java classes in com.test.xxx package so that I can tell them all classes are to be skipped.

1 Answers

You can use a @Disabled Tag to disable a specific Test. If you just have empty test classes, for whatever reason. Delete them.

If you want to fake code coverage for whatever reason, you can create tests and call your services inside the tests, but do not add any assertations... However this is extremly bad practice and I cant really suggest it to you.

Related