Hi , im trying to run in parallel using workers.
I created parallel.js file -
const splitTests = () => {
const files = [
[’/Users/shimon/dev/new-codecept/tests/marketing-intelligence/competitive-analysis/qualificationSideBar_test.ts’],
[’/Users/shimon/dev/new-codecept/tests/marketing-intelligence/competitive-analysis/qualificationSideBar_test.ts’],
];
return files;
}
const workerConfig = {
testConfig: ‘./codecept.conf.js’,
by: splitTests
};
const workers = new Workers(null, workerConfig);
workers.run();
and when i execute — codeceptjs run-workers 2
i get this output:
-------- Started bootstrap All process --------
-------- Finished bootstrap All process --------
OK | 0 passed // 3s
-------- Started teardown All process --------
-------- Finished teardown All process --------
its seems that the file does not taken into account, someone maybe can assist?
codecept.conf.js content:
exports.config = {
tests: “./tests/**//_test.ts”,
output: “./output”,
timeout: 300,
helpers: {
Playwright: {
url: “https://frozen-pro.sandbox.similarweb.com”,
restart: “keep”,
keepCookies: true,
show: true,
browser: “chromium”,
waitForNavigation: “domcontentloaded”,
windowSize: “1600x1200”,
uniqueScreenshotNames: true,
keepBrowserState: true,
},
mPlaywrite: {
require: ‘./helpers/mplaywrite_helper.js’,
},
ResembleHelper: {
require: “codeceptjs-resemblehelper”,
screenshotFolder: “./tests/output/”,
baseFolder: “./tests/screenshots/base/”,
diffFolder: “./tests/screenshots/diff/”,
},
},
include: {
I: “./steps_file.ts”,
},
teardownAll: async () => {
output.success(’-------- Started teardown All process --------’);
output.success(’-------- Finished teardown All process --------’);
},
bootstrapAll: async () => {
output.success(’-------- Started bootstrap All process --------’);
output.success(’-------- Finished bootstrap All process --------’);
},
async bootstrap() {
output.success(“in bootstrap”);
},
},
};
Thanks !!