I’m trying to generate tests for Apache Accumulo and I don’t get tests for two methods:
17:37:16.383 INFO [1/3] Created 0 tests for method org.apache.accumulo.core.conf.AccumuloConfiguration.getUpdateCount 17:37:16.383 INFO [1/3] Method considered not valuable to test due to T001: Trivial getters are not considered valuable to test. 17:37:16.386 INFO [2/3] Created 0 tests for method org.apache.accumulo.core.conf.AccumuloConfiguration$ScanExecutorConfig.<init> 17:37:16.386 INFO [2/3] Method considered not valuable to test due to T005: Trivial constructors are not considered valuable to test.
- What exactly is the definition of ‘trivial getter’ and ‘trivial constructor’ for Cover?
- Can I override this decision and try to get a tests for these methods? How?
I’m aware of https://docs.diffblue.com/cover/user-manual/topics/knowledge-base/t-error_codes.html, but it doesn’t really answer the questions above.
This is what I did:
git clone https://github.com/apache/accumulo cd accumulo git checkout cfd8d44 mvn package -DskipTests # needs Java 11 cd core dcover create org.apache.accumulo.core.conf.AccumuloConfiguration