Skip to content

Commit 8df6716

Browse files
Merge pull request #44 from Shahnawaz-LambdaTest/master
Fix for jasmine suite test names
2 parents fdef0d4 + 7047ff8 commit 8df6716

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wdio-lambdatest-service",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"description": "A WebdriverIO service that manages tunnel and job metadata for LambdaTest.",
55
"author": "LambdaTest <[email protected]>",
66
"contributors": [

src/service.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ export default class LambdaRestService {
5151
}
5252

5353
if (this.suiteTitle === 'Jasmine__TopLevel__Suite') {
54-
this.suiteTitle = test.fullName;
54+
const testSuiteName = test.fullName.slice(0, test.fullName.indexOf(test.description || '') - 1)
55+
this.suiteTitle = testSuiteName;
56+
global.browser.execute("lambda-name="+this.suiteTitle)
5557
}
5658
}
5759

0 commit comments

Comments
 (0)