-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running sample-test does not give the same results as described in the readme. #1
Comments
Hi @PiotrJustyna, thank you for the bug report. I am working on a deadline, and may take a few days to respond. I will reply once I have had a chance to look at the difference. |
Thanks, @vrthra. Looking forward to your update! 😃 |
@PiotrJustyna could you please share your sample-test.tix ? It contains the line coverage information. Also could you please paste output of |
Could you please apply this and run again, and paste any console output? diff --git a/src/Test/MuCheck/Interpreter.hs b/src/Test/MuCheck/Interpreter.hs
index 3536ff8..c84be7d 100644
--- a/src/Test/MuCheck/Interpreter.hs
+++ b/src/Test/MuCheck/Interpreter.hs
@@ -16,6 +16,7 @@ import Test.MuCheck.Utils.Common
import Test.MuCheck.Utils.Print
import Test.MuCheck.AnalysisSummary
+import Debug.Trace
-- | Data type to hold results of a single test execution
data MutantSummary = MSumError Mutant String [Summary] -- ^ Capture the error if one occured
@@ -137,7 +138,7 @@ fullSummary m _tests results = MAnalysisSummary {
_maNumMutants = length results,
_maAlive = length alive,
_maKilled = length fails,
- _maErrors= length errors}
+ _maErrors= length (trace (show errors) errors)}
where res = map (map _io) results
lasts = map last res -- get the last test runs
(errors, completed) = partitionEithers lasts |
@PiotrJustyna Could you please also try installing mucheck with |
@vrthra Thanks for the update. So, I tried clearing the whole repo and sandbox folder, got the code and installed the packages again in a fresh environment as you suggested, but still getting the same problem. *output:
All *.log files are empty. Let me apply those changes you proposed and I'll get back to you. |
This happens because mucheck is unable to find the |
Looks like you're right. This is the output when I enable debugging:
Let me clear the sandbox once again and repeat the installation process. Maybe I messed something up. |
Nope, no joy... Let me experiment with building the mutants tomorrow. Thanks for your suggestions, though. |
Try running this on a fresh copy |
Tried |
Rahul,
First of all, thanks for the great work, you must have invested a lot of time into putting this library together. Much appreciated.
Just started using your library, but not sure I'm getting the results I would expect from the readme file. Running sample-test (according to the readme) gives me the following output:
While the readme states I should expect:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: