Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

test: Use the directory as parentSuite. (#16493)

bgrozev386bdbfc2213
diff --git a/tests/wdio.conf.ts b/tests/wdio.conf.ts
index 46fd56d124..8a68de9542 100644
--- a/tests/wdio.conf.ts
+++ b/tests/wdio.conf.ts
@@ -312,6 +312,14 @@ export const config: WebdriverIO.MultiremoteConfig = {
* @param {Object} context - The context object.
*/
beforeTest(test, context) {
+ // Use the directory under 'tests/specs' as the parent suite
+ const match = test.file.match(/.*\/tests\/specs\/([^\/]+)\//);
+ const dir = match ? match[1] : false;
+
+ if (dir) {
+ AllureReporter.addParentSuite(dir);
+ }
+
if (ctx.skipSuiteTests) {
context.skip();