Skip to content

Instantly share code, notes, and snippets.

@katiayn
Created January 23, 2017 22:39
Show Gist options
  • Save katiayn/f634e1b1f913042e34ce9d03f6e2f6d9 to your computer and use it in GitHub Desktop.
Save katiayn/f634e1b1f913042e34ce9d03f6e2f6d9 to your computer and use it in GitHub Desktop.
[*] Start mutation process:
- targets: calculator
- tests: test_calculator
[*] All tests passed:
- test_calculator [0.00031 s]
[*] Start mutants generation and execution:
- [# 1] AOR calculator.py:2 :
--------------------------------------------------------------------
1: def mul(x, y):
~2: return x / y
--------------------------------------------------------------------
[0.02944 s] killed by test_mul (test_calculator.CalculatorTest)
- [# 2] AOR calculator.py:2 :
--------------------------------------------------------------------
1: def mul(x, y):
~2: return x // y
--------------------------------------------------------------------
[0.02073 s] killed by test_mul (test_calculator.CalculatorTest)
- [# 3] AOR calculator.py:2 :
--------------------------------------------------------------------
1: def mul(x, y):
~2: return x ** y
--------------------------------------------------------------------
[0.01152 s] survived
- [# 4] SDL calculator.py:2 :
--------------------------------------------------------------------
1: def mul(x, y):
~2: pass
--------------------------------------------------------------------
[0.01437 s] killed by test_mul (test_calculator.CalculatorTest)
[*] Mutation score [0.21818 s]: 75.0%
- all: 4
- killed: 3 (75.0%)
- survived: 1 (25.0%)
- incompetent: 0 (0.0%)
- timeout: 0 (0.0%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment