java - Mockito Junit testcoverage removal of unit test coverge -


hi have done unit testing entire project using mockito framework. project on java spring rest project. coverage below 35%. need improve unit testing coverage.
1. want remove unneccesay package code coverage, test packages , beans class
2. need write unit test case controller class , generated class tools.

i grateful, if can me.

test classes , packages not counted in test coverage, if were, how test code tests code etc..

when run coverage should run on src/main/java etc.

controller classes should tested, when call method, correct delegated class , method called?

generated classes, if xml using jaxb etc not need explicitly tested if plain old java objects getter, setters , fields. it's tested via class uses these objects , calls methods. these classes generated/compiled before tests run available- make sure aren't committing generated classes code repository.

you may want consider testing behaviour of third party libraries depend on. way can instantly see if updates libraries may cause issues, should high level.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -