Skip to content

In test.unit.dart has high latency because Karma takes long time to serve context.html #2437

@IgorMinar

Description

@IgorMinar

We are spending about 21s (on my MBP) somewhere between kicking off the test run and tests actually running.

I tried to debug this a bit and here is what I found:

  • dartium's timeline confirms the time is spent in fetching context.html
  • deducing from Karma's log, it looks like the time is spent in watcher or rather karma-dart's adapter that generates the list of files to serve.

To repro:

  • run gulp test.unit.dart
  • in separate terminal run touch modules/angular2/src/di/injector.ts

cc: @pkozlowski-opensource @tbosch

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions