MetricsFile

mutationtesting.MetricsFile
final case class MetricsFile(fileName: String, mutants: Iterable[MetricMutant]) extends MetricsResult with FileOps

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait FileOps
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

lazy override val compileErrors: Int

The mutant resulted in a compiler error. This can happen in compiled languages. Don't spend too much attention looking at this mutant. It is not represented in your mutation score.

The mutant resulted in a compiler error. This can happen in compiled languages. Don't spend too much attention looking at this mutant. It is not represented in your mutation score.

Attributes

Inherited from:
FileOps
lazy override val ignored: Int

The total number of mutants that were not even tested because the config of the user asked for them to be ignored.

The total number of mutants that were not even tested because the config of the user asked for them to be ignored.

Attributes

Inherited from:
FileOps
lazy override val killed: Int

At least one test failed while this mutant was active. The mutant is killed. This is what you want, good job!

At least one test failed while this mutant was active. The mutant is killed. This is what you want, good job!

Attributes

Inherited from:
FileOps
lazy val mutationScore: Double

The total percentage of mutants that were killed. Or a {{Double.NaN}} if there are no mutants.

The total percentage of mutants that were killed. Or a {{Double.NaN}} if there are no mutants.

Attributes

Inherited from:
MetricsResult

The total percentage of mutants that were killed based on the code coverage results. Or {{Double.NaN}} if there are no mutants.

The total percentage of mutants that were killed based on the code coverage results. Or {{Double.NaN}} if there are no mutants.

Attributes

Inherited from:
MetricsResult
lazy override val noCoverage: Int

No tests are executed to test this mutant, because the mutant is located in a part of the code that is not hit by any of your tests. This means the mutant also survived and your missing a test case for it.

No tests are executed to test this mutant, because the mutant is located in a part of the code that is not hit by any of your tests. This means the mutant also survived and your missing a test case for it.

Attributes

Inherited from:
FileOps
lazy override val runtimeErrors: Int

The running of the tests resulted in an error (rather than a failed test). This can happen when the mutant fails outside of running a test. For example, when a testrunner fails. Don't spend too much attention looking at this mutant. It is not represented in your mutation score.

The running of the tests resulted in an error (rather than a failed test). This can happen when the mutant fails outside of running a test. For example, when a testrunner fails. Don't spend too much attention looking at this mutant. It is not represented in your mutation score.

Attributes

Inherited from:
FileOps
lazy override val survived: Int

All tests passed while this mutant was active. the mutant survived. You're missing a test for it.

All tests passed while this mutant was active. the mutant survived. You're missing a test for it.

Attributes

Inherited from:
FileOps
lazy override val timeout: Int

The running of tests with this mutant active resulted in a timeout. For example, the mutant resulted in an infinite loop in your code. Don't spend too much attention to this mutant. It is counted as "detected". The logic here is that if this mutant were to be injected in your code, your CI build would detect it, because the tests will never complete.

The running of tests with this mutant active resulted in a timeout. For example, the mutant resulted in an infinite loop in your code. Don't spend too much attention to this mutant. It is counted as "detected". The logic here is that if this mutant were to be injected in your code, your CI build would detect it, because the tests will never complete.

Attributes

Inherited from:
FileOps
lazy val totalCovered: Int

The number of mutants that your tests produce code coverage for.

The number of mutants that your tests produce code coverage for.

Attributes

Inherited from:
MetricsResult
lazy val totalDetected: Int

The number of mutants detected by your tests.

The number of mutants detected by your tests.

Attributes

Inherited from:
MetricsResult
lazy val totalInvalid: Int

The number of mutants that are invalid. They couldn't be tested because they produce either a compile error.

The number of mutants that are invalid. They couldn't be tested because they produce either a compile error.

Attributes

Inherited from:
MetricsResult
lazy val totalMutants: Int

All mutants.

All mutants.

Attributes

Inherited from:
MetricsResult
lazy val totalUndetected: Int

The number of mutants that are not detected by your tests.

The number of mutants that are not detected by your tests.

Attributes

Inherited from:
MetricsResult
lazy val totalValid: Int

The number of mutants that are valid. They didn't result in a compile error or runtime error.

The number of mutants that are valid. They didn't result in a compile error or runtime error.

Attributes

Inherited from:
MetricsResult