XRM-OSS / D365-UI-Test-Jest-Demo

Demo repository for a D365-UI-Test project using Jest
MIT License
4 stars 3 forks source link

Parallelism #5

Closed imartinflores closed 3 years ago

imartinflores commented 3 years ago

Hi @DigitalFlow ! Sorry to bother, just a general question. Is there anyway, by using Jest as in the example, to run multiple .spec files in parallel ?

i.e: I have "Activities.spec.ts" and "Case.spec.ts" , I have found in the jest.config.js file, the "include" option with "./spec" , so it is picking all the spec files under that folder, but running them sequentially, is there anything I need to add ?

Also, is there anyway to run them in a selenium grid ?

thanks a lot!

DigitalFlow commented 3 years ago

Hi @DigitalFlow,

Yes you can run tests in parallel. This is even the default of jest, all .spec files are executed in parallel by default.

You just need to remove the --runInBand parameter inside the package.json, then they are executed in parallel again.

Selenium Grid does not support playwright as it seems.

Kind regards, Florian

imartinflores commented 3 years ago

Thanks a lot as always @DigitalFlow !