Fellow Members, I am trying to configure Sonarqube on my service. For tests, I have extracted testData (setup) into a separate class - testData.java class.
My question is, how should I analyse my testData.java using Sonar. Since Sonar mandates all the files under test package to end with *Test.java. Therefore if I try to rename the file to something say testDataTest.java it asks me to add a Test to the class. Since my class is a final class and does not contain any test, I have to add a hack to add a meaning less @Test. I would like to understand what are the best practices here and how could I improvise.
Thanks
Aucun commentaire:
Enregistrer un commentaire