azure-sdk-for-js icon indicating copy to clipboard operation
azure-sdk-for-js copied to clipboard

Run JS tests in parallel

Open mikeharder opened this issue 5 years ago • 4 comments

Research the current best practices for running JS tests in parallel. A few options:

  • Mocha
  • Jest
    • Migration: https://medium.com/airbnb-engineering/unlocking-test-performance-migrating-from-mocha-to-jest-2796c508ec50

It makes sense to look at Mocha first as our tests are already using Mocha. During MQ 2021 we would like to

  • figure out what's needed
  • enable parallel test executing for one package which can be served as a sample

mikeharder avatar Jan 30 '19 01:01 mikeharder

JS team would like to investigate this during MQ 2021

jeremymeng avatar Sep 29 '21 17:09 jeremymeng

Any thoughts on which milestone we should move this to?

maorleger avatar Mar 30 '22 20:03 maorleger

Moving this to Backlog for now. It needs newer version of mocha. I found it not straightforward to upgrade in my brief attempt.

jeremymeng avatar Mar 31 '22 18:03 jeremymeng

Mocha v8 has parallel execution support built-in.

jeremymeng avatar Mar 31 '22 20:03 jeremymeng