From 5da739193a82ad607f662dbcafdc9c1fa1660ef8 Mon Sep 17 00:00:00 2001 From: Durieux Pol Date: Wed, 20 Dec 2023 14:24:56 +0100 Subject: [PATCH 1/2] disable epicea during mutant evaluation --- src/MuTalk-Model/MethodMutation.class.st | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/MuTalk-Model/MethodMutation.class.st b/src/MuTalk-Model/MethodMutation.class.st index a3f8d462..ed3afe16 100644 --- a/src/MuTalk-Model/MethodMutation.class.st +++ b/src/MuTalk-Model/MethodMutation.class.st @@ -131,10 +131,12 @@ MethodMutation >> printOn: aStream [ { #category : 'running' } MethodMutation >> runMutant [ - ^ [ + | testResults | + EpMonitor disableDuring: [ + [ self install. - self runTests - ] ensure: [ self uninstall ] + testResults := self runTests ] ensure: [ self uninstall ] ]. + ^ testResults ] { #category : 'private' } From 332b3c711f15a46df29372cde9d67a5e31c6a959 Mon Sep 17 00:00:00 2001 From: Guille Polito Date: Thu, 21 Dec 2023 15:08:08 +0100 Subject: [PATCH 2/2] Fix bad nested block --- src/MuTalk-Model/MethodMutation.class.st | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MuTalk-Model/MethodMutation.class.st b/src/MuTalk-Model/MethodMutation.class.st index 7a9e0240..81c8b3d9 100644 --- a/src/MuTalk-Model/MethodMutation.class.st +++ b/src/MuTalk-Model/MethodMutation.class.st @@ -133,9 +133,9 @@ MethodMutation >> runMutantStoppingOnError: aBoolean [ | testResults | EpMonitor disableDuring: [ - self install. + [ self install. testResults := self runTestsStoppingOnError: aBoolean - ] ensure: [ self uninstall ]. + ] ensure: [ self uninstall ] ]. ^ testResults ]