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
We're using Grunt to build multiple, but similar, applications in one build. Each app has files with the same names like HomeController, MenuController. So we split up the karma targets per application so dependencies are loaded only from the shared and specific application being tested. However, we do want all applications to be testes when deploying so we want to run all these targets on after another.
Fatal error
When using grunt to run the multiple karma targets it only runs the first successful and fails to run the second. Fatal error: listen EADDRINUSE The error is somehow related to a port being used.
when running: grunt karma this ends with a Fatal error: listen EADDRINUSE
I've also create a question on stack overflow. I hope someone can help me out!
The text was updated successfully, but these errors were encountered:
I believe @mokkabonna is right in stating his solution is not ideal and the karma-server should be stopped after completing a singleRun. Abusing the background option doesn't solve the problem.
Workaround
I've managed to run the karma tasks separately by chaining grunt commands on the CML instead of inside a grunt task. that works for us.
We're using Grunt to build multiple, but similar, applications in one build. Each app has files with the same names like HomeController, MenuController. So we split up the karma targets per application so dependencies are loaded only from the shared and specific application being tested. However, we do want all applications to be testes when deploying so we want to run all these targets on after another.
Fatal error
When using grunt to run the multiple karma targets it only runs the first successful and fails to run the second.
Fatal error: listen EADDRINUSE
The error is somehow related to a port being used.Grunt-karma config
when running:
grunt karma
this ends with aFatal error: listen EADDRINUSE
I've also create a question on stack overflow. I hope someone can help me out!
The text was updated successfully, but these errors were encountered: