Test
  • Introduction
  • Regression Testing
  • Unit Test
  • reflection
  • terminology
  • Defect Life Cycle
  • NullVSNotNull
  • @Before VS @BeforeEach VS...
  • JUnit Runner
  • run only functional test or integration test
  • cucumber/tags
  • cucumber/ options
  • cucumber/runwith
  • parallel cucumber test
  • cucumber/some eg
  • Hamcrest for testing
  • continuous integration
  • work flow for functional test
  • unit test for server side
  • other
  • Mock
  • jacoco&mutation
  • PowerMockito
  • performance test
Powered by GitBook
On this page
  • 1. Jacoco
  • 2. Mutation

Was this helpful?

jacoco&mutation

PreviousMockNextPowerMockito

Last updated 5 years ago

Was this helpful?

jacoco: if the quantity of the unit test is enough.

mutation: if the quality of the unit test is good.

1. Jacoco

jacoco: cover those branches, all of the possible way to get to each line.

there are 8 branches for try with resource block. actually, there is only 6. hardly to cover them.

2. Mutation

mutation: if the boundary or condition has changed, the unit test should fail, killed. Or survived which means the unit test is not good.

https://www.baeldung.com/java-mutation-testing-with-pitest