You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added Vitest to my project, which uses Angular 18 and TypeScript. The tests run successfully with Vitest. However, when I try to run Stryker (using the Vitest runner extension), I encounter the following error: 15:45:22 (15888) ERROR DryRunExecutor One or more tests resulted in an error: Test runner crashed. Tried twice to restart it without any luck. Last time the error message was: Error: Error: VITEST_FILES_NOT_FOUND (undefined) Error: No test files found at Vitest.start (file:///C:/projects/github/angular18-vitest-stryker/node_modules/vitest/dist/chunks/cli-api.btGgw3PC.js:10518:15) at async VitestTestRunner.run (file:///C:/projects/github/angular18-vitest-stryker/node_modules/@stryker-mutator/vitest-runner/dist/src/vitest-test-runner.js:94:13) at async VitestTestRunner.dryRun (file:///C:/projects/github/angular18-vitest-stryker/node_modules/@stryker-mutator/vitest-runner/dist/src/vitest-test-runner.js:58:28) at async ChildProcessTestRunnerWorker.dryRun (file:///C:/projects/github/angular18-vitest-stryker/node_modules/@stryker-mutator/core/dist/src/test-runner/child-process-test-runner-worker.js:25:30)
Here the complete stryker.log for the command npx stryker run --fileLogLevel trace.
What I've Tried
Tested in my real project with Angular 17 and with a new project also with Angular 17 -> same error.
Debugged Stryker in VS Code adding this configuration to .vscode/launch.json: { "type": "node", "request": "launch", "name": "Debug Stryker", "skipFiles": ["<node_internals>/**"], "program": "${workspaceFolder}/node_modules/@stryker-mutator/core/bin/stryker", "args": ["run"], "console": "integratedTerminal", "outputCapture": "std" }
What I've seen when debugging is that in @stryker-mutator/core/dist/src/test-runner/child-process-test-runner-worker.js is invoking the corresponding testing runner with dryRun(options),
but vitest-test-runner.js is not accepting arguments.
Idk if this could be related with the problem.
Any Ideas for a Solution?
I would greatly appreciate any guidance or suggestions on how to resolve this issue.
Summary
I've added Vitest to my project, which uses Angular 18 and TypeScript. The tests run successfully with Vitest. However, when I try to run Stryker (using the Vitest runner extension), I encounter the following error:
15:45:22 (15888) ERROR DryRunExecutor One or more tests resulted in an error: Test runner crashed. Tried twice to restart it without any luck. Last time the error message was: Error: Error: VITEST_FILES_NOT_FOUND (undefined) Error: No test files found at Vitest.start (file:///C:/projects/github/angular18-vitest-stryker/node_modules/vitest/dist/chunks/cli-api.btGgw3PC.js:10518:15) at async VitestTestRunner.run (file:///C:/projects/github/angular18-vitest-stryker/node_modules/@stryker-mutator/vitest-runner/dist/src/vitest-test-runner.js:94:13) at async VitestTestRunner.dryRun (file:///C:/projects/github/angular18-vitest-stryker/node_modules/@stryker-mutator/vitest-runner/dist/src/vitest-test-runner.js:58:28) at async ChildProcessTestRunnerWorker.dryRun (file:///C:/projects/github/angular18-vitest-stryker/node_modules/@stryker-mutator/core/dist/src/test-runner/child-process-test-runner-worker.js:25:30)
Here the complete stryker.log for the command
npx stryker run --fileLogLevel trace
.What I've Tried
{ "type": "node", "request": "launch", "name": "Debug Stryker", "skipFiles": ["<node_internals>/**"], "program": "${workspaceFolder}/node_modules/@stryker-mutator/core/bin/stryker", "args": ["run"], "console": "integratedTerminal", "outputCapture": "std" }
What I've seen when debugging is that in @stryker-mutator/core/dist/src/test-runner/child-process-test-runner-worker.js is invoking the corresponding testing runner with dryRun(options),
but
vitest-test-runner.js
is not accepting arguments.Idk if this could be related with the problem.
Any Ideas for a Solution?
I would greatly appreciate any guidance or suggestions on how to resolve this issue.
I've uploaded the project here: angular18-vitest-stryker
Steps to Reproduce
npx stryker run
Relevant Configuration
Angular: 18.2.0
TypeScript: 5.5.2
Vitest: 2.1.3
Stryker: 8.6.0
Stryker config
Test runner config
vite.config.ts
Stryker environment
Stryker dependencies:
Test runner dependencies:
Test runner environment
# Test command npx stryker run
src/test-setup.ts
Your Environment
Thank you in advance!
The text was updated successfully, but these errors were encountered: