wdio-lambdatest-service-sdk 5.1.2 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -14
- package/bin/cli.js +2 -2
- package/bin/generate-config.js +1 -1
- package/bin/setup.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,16 +26,20 @@ WebdriverIO service and CLI for running Appium and browser tests on [LambdaTest]
|
|
|
26
26
|
- **Authentication**: Pass `username` and `accessKey` in the service options or via the CLI.
|
|
27
27
|
- **Test Status Updates**: Automatically marks tests as Passed/Failed on the LambdaTest dashboard using Lambda Hooks.
|
|
28
28
|
- **Logs**: Clean, colorful status logs in the terminal.
|
|
29
|
-
- **CLI**: Interactive config generator and setup tool (Commander, Chalk, Inquirer; runs with
|
|
29
|
+
- **CLI**: Interactive config generator and setup tool (Commander, Chalk, Inquirer; runs with Node.js or Bun).
|
|
30
30
|
- **Multi-select**: Choose multiple test types, device types, platforms, and app/website targets in one config.
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
34
34
|
## Installation
|
|
35
35
|
|
|
36
|
+
Works with **Node.js** (≥18) or **Bun** (≥1.0). No Bun required.
|
|
37
|
+
|
|
36
38
|
```bash
|
|
39
|
+
# With npm (Node.js)
|
|
37
40
|
npm install wdio-lambdatest-service --save-dev
|
|
38
|
-
|
|
41
|
+
|
|
42
|
+
# With Bun (optional)
|
|
39
43
|
bun add wdio-lambdatest-service --dev
|
|
40
44
|
```
|
|
41
45
|
|
|
@@ -207,11 +211,11 @@ npm install wdio-lambdatest-service --save-dev
|
|
|
207
211
|
### 2. Run the Config Generator
|
|
208
212
|
|
|
209
213
|
```bash
|
|
210
|
-
# With Bun (recommended)
|
|
211
|
-
bun wdio-lt generate
|
|
212
|
-
|
|
213
214
|
# With Node.js
|
|
214
215
|
npx wdio-lt generate
|
|
216
|
+
|
|
217
|
+
# With Bun (optional)
|
|
218
|
+
bunx wdio-lt generate
|
|
215
219
|
```
|
|
216
220
|
|
|
217
221
|
### 3. Follow the Prompts
|
|
@@ -270,19 +274,21 @@ wdio-lt setup
|
|
|
270
274
|
wdio-lt generate
|
|
271
275
|
```
|
|
272
276
|
|
|
273
|
-
### Running
|
|
277
|
+
### Running the CLI
|
|
278
|
+
|
|
279
|
+
**With Node.js** (default; no extra install):
|
|
274
280
|
|
|
275
281
|
```bash
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
bun wdio-lt generate
|
|
282
|
+
npx wdio-lt setup ./android-sample
|
|
283
|
+
npx wdio-lt generate
|
|
279
284
|
```
|
|
280
285
|
|
|
281
|
-
|
|
286
|
+
**With Bun** (optional; faster):
|
|
282
287
|
|
|
283
288
|
```bash
|
|
284
|
-
|
|
285
|
-
|
|
289
|
+
curl -fsSL https://bun.sh/install | bash # Install Bun
|
|
290
|
+
bunx wdio-lt setup ./android-sample
|
|
291
|
+
bunx wdio-lt generate
|
|
286
292
|
```
|
|
287
293
|
|
|
288
294
|
### Legacy Commands (backward compatible)
|
|
@@ -391,8 +397,8 @@ wdio-lambdatest-service/
|
|
|
391
397
|
|
|
392
398
|
### Requirements
|
|
393
399
|
|
|
394
|
-
- **Node.js**: >= 18.0.0
|
|
395
|
-
- **Bun**: >= 1.0.0 (optional
|
|
400
|
+
- **Node.js**: >= 18.0.0 (required for npm install and default CLI run)
|
|
401
|
+
- **Bun**: >= 1.0.0 (optional; use `bun add` / `bunx wdio-lt` for faster install and run)
|
|
396
402
|
|
|
397
403
|
---
|
|
398
404
|
|
package/bin/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* LambdaTest WDIO CLI - Unified command-line interface.
|
|
4
4
|
* Powered by Commander, Chalk, and Inquirer.
|
|
5
|
-
* Runs with
|
|
5
|
+
* Runs with Node.js or Bun.
|
|
6
6
|
*/
|
|
7
7
|
const { Command } = require('commander');
|
|
8
8
|
const chalk = require('chalk');
|
package/bin/generate-config.js
CHANGED
package/bin/setup.js
CHANGED