-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Please provide us with the following information:
Is there a way to use more the one cpu at the same time for the test cases? Maybe more browser instances?
Currently, if you run karma with ng test, it only uses one cpu. If you have more than 400 test cases, which is easy to reach if you do TDD in a proper way, it takes a long time (more than 10 minutes in our case).
No question, we should improve the test cases, as well.
But still I have the question, whether it is possible to utilize the capabilities of the underlying computer?
I know, it sounds like a Karma question. But Karma has a parameter concurrency, which has no effect if I use the CLI. Even if I have to admit, I have not checked, if it had an effect, without the CLI. But I found the preprocessing in the test.ts very suspicious.
So I would appreciate, if somebody could share his/her experiences to the topic.
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Linux (Ubuntu)
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
angular-cli: 1.0.0-beta.25.5
node: 7.4.0
os: linux x64
@angular/common: 2.4.3
@angular/compiler: 2.4.3
@angular/core: 2.4.3
@angular/forms: 2.4.3
@angular/http: 2.4.3
@angular/platform-browser: 2.4.3
@angular/platform-browser-dynamic: 2.4.3
@angular/router: 3.4.3
@angular/compiler-cli: 2.4.3
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Just run ng test with over 400 test cases.
The log given by the failure.
Normally this include a stack trace and some more information.
No stack trace.
Mention any other details that might be useful.
Nothing more
Thanks! We'll be in touch soon.