Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,17 @@ Works with **WebdriverIO** and **[Nightwatch.js](./packages/nightwatch-devtools/

## Installation

**WebdriverIO:**
```bash
npm install @wdio/devtools-service
```

> **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.
**Nightwatch:**
```bash
npm install @wdio/nightwatch-devtools
```

> See the [Nightwatch Integration](#nightwatch-integration) section for configuration details.

## Configuration

Expand Down
4 changes: 3 additions & 1 deletion packages/nightwatch-devtools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

> Nightwatch adapter for [WebdriverIO DevTools](../../README.md) - brings the same visual debugging UI to your Nightwatch test suite with zero test code changes.

> **Note:** `@wdio/nightwatch-devtools` is included as a dependency of `@wdio/devtools-service`. Install the service package and import from `@wdio/nightwatch-devtools` directly.
```bash
npm install @wdio/nightwatch-devtools
```

---

Expand Down
2 changes: 1 addition & 1 deletion packages/nightwatch-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wdio/nightwatch-devtools",
"version": "1.0.1",
"version": "1.0.2",
"description": "Nightwatch adapter for WebdriverIO DevTools - reuses existing backend, UI, and capture infrastructure",
"type": "module",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/nightwatch-devtools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ class NightwatchDevToolsPlugin {
this.options.hostname
)
log.info('🚀 Starting DevTools backend...')
await start(this.options)
const { port } = await start(this.options)
this.options.port = port
const url = `http://${this.options.hostname}:${this.options.port}`
log.info(`✓ Backend started on port ${this.options.port}`)
log.info(` DevTools UI: ${url}`)
Expand Down
Loading