Skip to content

Commit 1c8830f

Browse files
authored
Merge pull request #5 from hjsblogger/codeceptjs-lt-service
Add CodeceptJS LambdaTest service for test status updates
2 parents efdba06 + c3e7811 commit 1c8830f

2 files changed

Lines changed: 31 additions & 19 deletions

File tree

codecept.conf.js

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
exports.config = {
2-
tests: './*_test.js',
3-
output: './output',
4-
helpers: {
2+
tests: './*_test.js',
3+
output: './output',
4+
5+
helpers: {
56
WebDriver: {
67
url: 'http://google.com/ncr',
78
browser: 'chrome',
89
host: 'hub.lambdatest.com',
910
port: 80,
10-
user: process.env.LT_USERNAME, //Your Username
11-
key: process.env.LT_ACCESS_KEY, ////Your Access key
12-
desiredCapabilities:{
13-
name: "Codeceptio Sample Test",
14-
build: "Codeceptio",
15-
platformName: "Windows 10",
11+
user: process.env.LT_USERNAME,
12+
key: process.env.LT_ACCESS_KEY,
13+
14+
desiredCapabilities: {
15+
name: "[CodeceptJS] Automation Sample",
16+
build: "[CodeceptJS] Automation Sample",
17+
platformName: "Windows 11",
1618
browserName: 'Chrome',
17-
version: 'latest'
18-
},
19+
browserVersion: 'dev'
20+
}
21+
},
22+
23+
LTHelper: {
24+
require: 'codeceptjs-lambdatest-service',
25+
user: process.env.LT_USERNAME,
26+
key: process.env.LT_ACCESS_KEY,
27+
updateTestName: true
1928
}
2029
},
21-
include: {
22-
I: './steps_file.js'
23-
},
24-
bootstrap: null,
25-
mocha: {},
26-
name: 'CodeceptJS'
27-
}
2830

31+
include: {
32+
I: './steps_file.js'
33+
},
2934

35+
bootstrap: null,
36+
mocha: {},
37+
name: 'CodeceptJS'
38+
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
"codeceptjs": "^3.7.5",
2121
"selenium-webdriver": "^4.38.0",
2222
"webdriverio": "^9.20.0"
23+
},
24+
"devDependencies": {
25+
"codeceptjs-lambdatest-service": "^1.0.4"
2326
}
24-
}
27+
}

0 commit comments

Comments
 (0)