• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RobotWebTools / rclnodejs / 25727559523
85%

Build:
DEFAULT BRANCH: develop
Ran 12 May 2026 10:22AM UTC
Jobs 1
Files 63
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 May 2026 10:04AM UTC coverage: 85.474% (+0.08%) from 85.399%
25727559523

push

github

web-flow
[Web Runtime] rclnodejs-web CLI launcher (#1513)

Adds the bundled `rclnodejs-web` (and `rcl-web` short alias) CLI so frontend developers can run the Web Runtime without writing a Node.js server.

- `bin/rclnodejs-web.js` (new, 138 LOC) — declarative launcher. Reads a JSON config (`web.json`) and/or repeatable `--call` / `--publish` / `--subscribe` flags. Always starts the WebSocket transport; opt-in HTTP via `--http-port` (or an `http: { port }` block in the config file). Defers `require('rclnodejs')` until after argv parsing so `--help` / `--version` stay fast. Supports ephemeral `--port 0` / `--http-port 0` for tests. Handles SIGINT/SIGTERM with `runtime.stop()` + `rclnodejs.shutdown()`.

- `lib/runtime/cli-config.js` (new, 339 LOC) — pure-data argv parser + JSON config loader + validator + defaults merger. Independent of rclnodejs so it can be unit-tested without spinning up a node. Exports `DEFAULTS`, `parseArgv`, `loadConfigFile`, `validateConfig`, `mergeConfig`, `CliError`, `HELP`. Defaults: `port=9000`, `host='::'` (dual-stack), `path='/capability'`, `node='rclnodejs_web'`, `http.port=null` (disabled).

- `test/test-web-cli.js` (new, 459 LOC) — 25 mocha cases: parseArgv (8), config-file load + validate including the `http` block (10), mergeConfig precedence (5), and end-to-end CLI launches that probe the runtime via raw WebSocket and HTTP `fetch` (3).

- `package.json` — two `bin` entries: `rclnodejs-web` (canonical) and `rcl-web` (short alias).

Fix: #1510

1828 of 2323 branches covered (78.69%)

Branch coverage included in aggregate %.

103 of 115 new or added lines in 1 file covered. (89.57%)

3609 of 4038 relevant lines covered (89.38%)

396.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
86.94
lib/runtime/cli-config.js
Jobs
ID Job ID Ran Files Coverage
1 25727559523.1 12 May 2026 10:22AM UTC 63
85.47
GitHub Action Run
Source Files on build 25727559523
  • Tree
  • List 63
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25727559523
  • 837cd850 on github
  • Prev Build on develop (#25724053837)
  • Next Build on develop (#25785111516)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc