pitest / pitest-kotlin

Kotlin plugin for pitest
Apache License 2.0
47 stars 12 forks source link

Prevent mutating data class accessors #6

Open pkubowicz opened 4 years ago

pkubowicz commented 4 years ago

Pitest changes String property getter to return an empty string and then executes tests to see if something is broken.

This is a waste of time. Properties in data classes should not be tested, it should be assumed that they always work as it is a language feature.