I am facing a situation where I have 6 different test suites that need to be executed. Among them, 5 of the test suites should run with 3 concurrent browsers while the remaining 1 needs to run without any concurrency. Additionally, I want all the results from these 6 test suites to be combined in a single HTML file.
Although I have explored the test runner solution, I am struggling to understand how I can execute the one test suite without concurrency.
Below is an excerpt from the TestRunner code:
let testcafe = null;
createTestCafe('localhost', 1337, 1338)
.then((tc) => {
testcafe = tc;
const runner = testcafe.createRunner();
return runner
.src('uitests/tests/test1.js', 'uitests/tests/test2.js', 'uitests/tests/test3.js', 'uitests/tests/tes4t.js', 'uitests/tests/test5.js')
.browsers('chrome:headless')
.screenshots('screenshots', true)
.reporter('html', 'resultsrunner.html')
.concurrency(3)
.run({
skipJsErrors: true,
})
})
.then(() => {
testcafe.close();
});
Now, my concern is how can I modify my code so that test6.js
runs without any concurrency and the results of all 6 test suites are collated into a single HTML file?
.src('uitests/tests/test6.js')
.browsers('chrome:headless')
.screenshots('screenshots', true)
.reporter('html', 'resultsrunner.html')
.run({
skipJsErrors: true,
})