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
When the stryker command "npx stryker run" is run, source files are instrumented, sandbox folder is created and working directory is changed to the sandbox directory. I see the below output in the terminal and nothing else happens after that. Navigating manually to the karma runner on http://localhost:9876/# shows "localhost refused to connect."
Starting Angular tests: ng test --progress=false --karma-config=C:\dev\monorepo\web.repo\node_modules@stryker-mutator\karma-runner\stryker-karma.conf.cjs --project=1-web
Starting Angular tests: ng test --progress=false --karma-config=C:\dev\monorepo\web.repo\node_modules@stryker-mutator\karma-runner\stryker-karma.conf.cjs --project=1-web
When I "cd" into the sandbox folder and run the below command manually:
ng test --progress=true --karma-config=apps/1-web/karma.conf.js --project=1-web
I see this on http://localhost:9876/#
The browser just hangs there. No console errors on the debug window either. The debug window is just blank and console shows "Skipped 0 tests"
I tried removing ngConfig->testArguments-> project and running Stryker, same result.
But if I run "ng test" in the sandbox folder, all tests are running.
My project structure:
The text was updated successfully, but these errors were encountered:
Question
Why does Stryker JS hang when used with angular ng test?
Stryker environment
Additional context
When the stryker command "npx stryker run" is run, source files are instrumented, sandbox folder is created and working directory is changed to the sandbox directory. I see the below output in the terminal and nothing else happens after that. Navigating manually to the karma runner on http://localhost:9876/# shows "localhost refused to connect."
Starting Angular tests: ng test --progress=false --karma-config=C:\dev\monorepo\web.repo\node_modules@stryker-mutator\karma-runner\stryker-karma.conf.cjs --project=1-web
Starting Angular tests: ng test --progress=false --karma-config=C:\dev\monorepo\web.repo\node_modules@stryker-mutator\karma-runner\stryker-karma.conf.cjs --project=1-web
When I "cd" into the sandbox folder and run the below command manually:
ng test --progress=true --karma-config=apps/1-web/karma.conf.js --project=1-web
I see this on http://localhost:9876/#
The browser just hangs there. No console errors on the debug window either. The debug window is just blank and console shows "Skipped 0 tests"
I tried removing ngConfig->testArguments-> project and running Stryker, same result.
But if I run "ng test" in the sandbox folder, all tests are running.
My project structure:
The text was updated successfully, but these errors were encountered: