vendredi 15 janvier 2021

Source code style checks as part of unit tests?

i would like to ask if it is possible (and normal) somehow to check the project code itself in java unit tests. I want to check if there are unused methods, lack of checks etc.

So a group of my unit tests will have the purpose of validating that the classes are written according to the conventions

I can get the methods via reflection but not each separate statement

Thanks





Aucun commentaire:

Enregistrer un commentaire