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
Open up your karma.conf.js file and set autoWatch: false
Run karma using npx karma run from the src directory (in another console, ). Specs should pass. Executed 3 of 3 SUCCESS
Now go to the "app.component.ts" file and change styleUrls: ['./app.component.css'] to styleUrls: [''].
Rerun karma using npx karma run. The karma process hangs and is not reporting the error (however, the AngularCompilerPlugin itself does report it).
This can be annoying for users using the Webstorm IDE. It starts angular with singleRun=false, watch=false. It uses karma run in order to kick of a test run and choose which tests to run. The result is that the tests hang in webstorm:
I'm investigating using ng test straight up for supporting mutation testing with Stryker. For this new approach to work, it would help a lot if the normal karma way of reporting errors is used.
The log given by the failure
-none-
Desired functionality
The compile error is reported via a karma event. We could use the "normal" error event for this: 'browser_error'. Otherwise we can create a new one: 'compiler_error' or something.
Furthermore, a compiler error should not result in a blocked karma run. Instead, it should finish up the run like normal, using the normal 'run_complete' event.
Mention any other details that might be useful
If we can fix this issue, we should be able to close #8744
The text was updated successfully, but these errors were encountered:
Bug Report or Feature Request (mark with an
x
)Area
Versions
Windows 10
Repro steps
autoWatch: false
npx karma run
from thesrc
directory (in another console, ). Specs should pass.Executed 3 of 3 SUCCESS
styleUrls: ['./app.component.css']
tostyleUrls: ['']
.npx karma run
. The karma process hangs and is not reporting the error (however, the AngularCompilerPlugin itself does report it).This can be annoying for users using the Webstorm IDE. It starts angular with
singleRun=false, watch=false
. It useskarma run
in order to kick of a test run and choose which tests to run. The result is that the tests hang in webstorm:I'm investigating using
ng test
straight up for supporting mutation testing with Stryker. For this new approach to work, it would help a lot if the normal karma way of reporting errors is used.The log given by the failure
-none-
Desired functionality
The compile error is reported via a karma event. We could use the "normal" error event for this:
'browser_error'
. Otherwise we can create a new one:'compiler_error'
or something.Furthermore, a compiler error should not result in a blocked karma run. Instead, it should finish up the run like normal, using the normal
'run_complete'
event.Mention any other details that might be useful
If we can fix this issue, we should be able to close #8744
The text was updated successfully, but these errors were encountered: