Skip to content

Add ReadMe tip for speeding up unit tests #3190

@JeremyTCD

Description

@JeremyTCD

OS?

Windows 10

Version

v1.0.0-beta.20-1

Repro steps

  1. Run ng test with chrome in focus.

  2. Run ng test with chrome minimized.

  3. Test run time can differ by more than an order of magnitude.

Other details that might be useful

I was running ~200 tests (30 of them were component tests). Execution time was either ~0.7s or ~20s and the test runner would eventually crash. Turns out the slow and unstable tests were a result of chrome being out of focus. Chrome windows that are out of focus get throttled.

Looking through the rebuild speed thread, #1980, I noticed some complaints about ng test test speed. Specifically this comment. I'd like to suggest including a tip in ReadMe to keep chrome in focus. Since this is quite a hard to diagnose issue I think it will be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: docsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions