-
Notifications
You must be signed in to change notification settings - Fork 250
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
Filenames not showing up correctly in report #1140
Comments
Nice find! What does the html reporter say? |
Basically the same, and it cannot show the contents of the faulty files. |
Does the path exist in the reports folder or is that one also incorrect? |
|
Yeah, probably a bug in the recursive function of the |
Same result there, I think you're right in saying something is going wrong with the recursion: {
"killed": 31,
"survived": 14,
"noCoverage": 0,
"runtimeErrors": 1,
"transpileErrors": 7,
"timedOut": 0,
"totalDetected": 31,
"totalUndetected": 14,
"totalCovered": 45,
"totalValid": 45,
"totalInvalid": 8,
"totalMutants": 53,
"mutationScore": 68.88888888888889,
"mutationScoreBasedOnCoveredCode": 68.88888888888889,
"name": "/home/sander/Documents/projects/private/inversify/src",
"path": "/home/sander/Documents/projects/private/inversify/src",
"childResults": [
{
"killed": 22,
"survived": 0,
"noCoverage": 0,
"runtimeErrors": 1,
"transpileErrors": 2,
"timedOut": 0,
"totalDetected": 22,
"totalUndetected": 0,
"totalCovered": 22,
"totalValid": 22,
"totalInvalid": 3,
"totalMutants": 25,
"mutationScore": 100,
"mutationScoreBasedOnCoveredCode": 100,
"name": "ioc",
"path": "/home/sander/Documents/projects/private/inversify/src/ioc",
"childResults": [
{
"killed": 22,
"survived": 0,
"noCoverage": 0,
"runtimeErrors": 0,
"transpileErrors": 2,
"timedOut": 0,
"totalDetected": 22,
"totalUndetected": 0,
"totalCovered": 22,
"totalValid": 22,
"totalInvalid": 2,
"totalMutants": 24,
"mutationScore": 100,
"mutationScoreBasedOnCoveredCode": 100,
"name": "ioc.ts",
"path": "/home/sander/Documents/projects/private/inversify/src/ioc/ioc.ts",
"childResults": [],
"representsFile": true
},
{
"killed": 0,
"survived": 0,
"noCoverage": 0,
"runtimeErrors": 1,
"transpileErrors": 0,
"timedOut": 0,
"totalDetected": 0,
"totalUndetected": 0,
"totalCovered": 0,
"totalValid": 0,
"totalInvalid": 1,
"totalMutants": 1,
"mutationScore": 100,
"mutationScoreBasedOnCoveredCode": 100,
"name": "iocUtils.ts",
"path": "/home/sander/Documents/projects/private/inversify/src/ioc/iocUtils.ts",
"childResults": [],
"representsFile": true
}
],
"representsFile": false
},
{
"killed": 5,
"survived": 4,
"noCoverage": 0,
"runtimeErrors": 0,
"transpileErrors": 2,
"timedOut": 0,
"totalDetected": 5,
"totalUndetected": 4,
"totalCovered": 9,
"totalValid": 9,
"totalInvalid": 2,
"totalMutants": 11,
"mutationScore": 55.55555555555556,
"mutationScoreBasedOnCoveredCode": 55.55555555555556,
"name": "modules/helloController.ts",
"path": "/home/sander/Documents/projects/private/inversify/src/modules/helloController.ts",
"childResults": [
{
"killed": 2,
"survived": 2,
"noCoverage": 0,
"runtimeErrors": 0,
"transpileErrors": 1,
"timedOut": 0,
"totalDetected": 2,
"totalUndetected": 2,
"totalCovered": 4,
"totalValid": 4,
"totalInvalid": 1,
"totalMutants": 5,
"mutationScore": 50,
"mutationScoreBasedOnCoveredCode": 50,
"name": "Controller.ts",
"path": "/home/sander/Documents/projects/private/inversify/src/modules/helloController.ts/Controller.ts",
"childResults": [],
"representsFile": true
},
{
"killed": 3,
"survived": 2,
"noCoverage": 0,
"runtimeErrors": 0,
"transpileErrors": 1,
"timedOut": 0,
"totalDetected": 3,
"totalUndetected": 2,
"totalCovered": 5,
"totalValid": 5,
"totalInvalid": 1,
"totalMutants": 6,
"mutationScore": 60,
"mutationScoreBasedOnCoveredCode": 60,
"name": "troller.ts",
"path": "/home/sander/Documents/projects/private/inversify/src/modules/helloController.ts/troller.ts",
"childResults": [],
"representsFile": true
}
],
"representsFile": false
},
{
"killed": 0,
"survived": 3,
"noCoverage": 0,
"runtimeErrors": 0,
"transpileErrors": 0,
"timedOut": 0,
"totalDetected": 0,
"totalUndetected": 3,
"totalCovered": 3,
"totalValid": 3,
"totalInvalid": 0,
"totalMutants": 3,
"mutationScore": 0,
"mutationScoreBasedOnCoveredCode": 0,
"name": "constants/types.ts",
"path": "/home/sander/Documents/projects/private/inversify/src/constants/types.ts",
"childResults": [],
"representsFile": true
},
{
"killed": 4,
"survived": 0,
"noCoverage": 0,
"runtimeErrors": 0,
"transpileErrors": 2,
"timedOut": 0,
"totalDetected": 4,
"totalUndetected": 0,
"totalCovered": 4,
"totalValid": 4,
"totalInvalid": 2,
"totalMutants": 6,
"mutationScore": 100,
"mutationScoreBasedOnCoveredCode": 100,
"name": "libraries/logger/loggerImpl.ts",
"path": "/home/sander/Documents/projects/private/inversify/src/libraries/logger/loggerImpl.ts",
"childResults": [],
"representsFile": true
},
{
"killed": 0,
"survived": 7,
"noCoverage": 0,
"runtimeErrors": 0,
"transpileErrors": 1,
"timedOut": 0,
"totalDetected": 0,
"totalUndetected": 7,
"totalCovered": 7,
"totalValid": 7,
"totalInvalid": 1,
"totalMutants": 8,
"mutationScore": 0,
"mutationScoreBasedOnCoveredCode": 0,
"name": "main.ts",
"path": "/home/sander/Documents/projects/private/inversify/src/main.ts",
"childResults": [],
"representsFile": true
}
],
"representsFile": false
} |
Solved in #1165 |
Summary
In one of my recent projects I used Stryker to mutation test. The report does not seem to be correct though because some wierd glitch is showing up in the filenames.
modules/helloController.ts
is not working correctly here. My directtory structure looks like:Stryker config
Stryker environment
Reproduction steps
Your Environment
The text was updated successfully, but these errors were encountered: