Skip to content

How to organize a collection of Test Specs/Suites where majority can run in parallel and a subset should run in 1 instance only #12108

Answered by troyyer
troyyer asked this question in Q&A
Discussion options

You must be logged in to vote

@christian-bromann
Thanks so much for your suggestion and sample idea. I have implemented something that should work for my requirements

  1. as per your suggestion I installed the npm-run-all package
  2. in my base.conf.js file separate to the specs section, I created a suites specifically for outage and moved those tests into the suite.
  3. in my other conf files, I put in at the top of the file const isSequential = process.env.SEQUENTIAL === 'true';
    and also maxInstances: isSequential ? 1 : 3,
  4. in my package.json file here is a sample for SIT env that will be copied for the STG env
"scripts": {
    "junitreportmerge": "node .\\test\\support\\junitreportmerge.js",
    "browserstackall:sit" : "npm-…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@umer-ali-khan
Comment options

@troyyer
Comment options

Answer selected by troyyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants