Skip to content

Commit 3fdf253

Browse files
committed
Multiport support and readme update
1 parent 3c30d3b commit 3fdf253

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,17 @@ Works with **WebdriverIO** and **[Nightwatch.js](./packages/nightwatch-devtools/
7070

7171
## Installation
7272

73+
**WebdriverIO:**
7374
```bash
7475
npm install @wdio/devtools-service
7576
```
7677

77-
> **Nightwatch users:** `@wdio/nightwatch-devtools` is included as a dependency of `@wdio/devtools-service`. Install the service and import from `@wdio/nightwatch-devtools` directly — see the [Nightwatch Integration](#nightwatch-integration) section.
78+
**Nightwatch:**
79+
```bash
80+
npm install @wdio/nightwatch-devtools
81+
```
82+
83+
> See the [Nightwatch Integration](#nightwatch-integration) section for configuration details.
7884
7985
## Configuration
8086

packages/nightwatch-devtools/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
> Nightwatch adapter for [WebdriverIO DevTools](../../README.md) - brings the same visual debugging UI to your Nightwatch test suite with zero test code changes.
44
5-
> **Note:** `@wdio/nightwatch-devtools` is included as a dependency of `@wdio/devtools-service`. Install the service package and import from `@wdio/nightwatch-devtools` directly.
5+
```bash
6+
npm install @wdio/nightwatch-devtools
7+
```
68

79
---
810

packages/nightwatch-devtools/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ class NightwatchDevToolsPlugin {
119119
this.options.hostname
120120
)
121121
log.info('🚀 Starting DevTools backend...')
122-
await start(this.options)
122+
const { port } = await start(this.options)
123+
this.options.port = port
123124
const url = `http://${this.options.hostname}:${this.options.port}`
124125
log.info(`✓ Backend started on port ${this.options.port}`)
125126
log.info(` DevTools UI: ${url}`)

0 commit comments

Comments
 (0)