jasonravagli / gym-manager

0 stars 0 forks source link

Missing mutation testing #17

Open jasonravagli opened 2 years ago

jasonravagli commented 2 years ago

PIT was disabled for mongodb because it contained only integration tests. Actually, tests inside the mongodb module are equivalent to unit tests since they were used for the implementation of the classes that use the database, hence mutation testing should be used for them.

PIT was disabled also for the gui module due to problems in mutating gui classes. Verify that there is not a solution to make it work also for them.

jasonravagli commented 2 years ago

We added mutation testing for the mongodb module, but PIT seems to have problems with AssertJ Swing tests. PIT mutationCoverage goal fails with the message "tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite", although the same tests passed for the Maven surefire plugin. We decided to ignore the problem and disable PIT for the gui module.