@willbooster/wb 22.15.1 → 22.16.1

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.
Files changed (3) hide show
  1. package/README.md +8 -1
  2. package/dist/index.js +55 -53
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -163,6 +163,11 @@ unfiltered `test/e2e-additional` script. Playwright-specific options still go
163
163
  after `--` in `wb test`; supply the name filter only once, before `--`.
164
164
  Use `--grep-invert` for inverse Playwright name filters across versions.
165
165
 
166
+ When a test command of `wb test` or a phase of `wb test-on-ci` exits, wb sends `SIGTERM` to the
167
+ processes it started that are still running (e.g. a build that a timed-out test left behind) and
168
+ lists them. wb finds them by polling the process tree every second, so a process whose parent
169
+ exited within a second of starting it is not found.
170
+
166
171
  ## Verification
167
172
 
168
173
  `wb verify` and `wb verify --full` are intended for coding agents. The log path is printed at startup.
@@ -174,7 +179,9 @@ Output is saved as it arrives, before display filtering,
174
179
  to `.wb/verify.log` or `.wb/verify-full.log` in the verified project. Each command
175
180
  overwrites its previous log; `--dry-run` leaves logs untouched.
176
181
 
177
- `wb test-on-ci` streams complete stdout and stderr, including with `--silent`, without saving a local log. Each phase reports its package, duration, and exit code. The final summary includes failed phases, their working directories, and rerun commands. `--dry-run` labels constructed commands with `Would run` and omits phase completion results. CI workflows own log storage and artifact uploads. `--max-minutes <n>` fails the run when the unit and E2E phases of all packages take longer than `n` minutes in total, even when every test passed, and lists those phases from slowest to fastest. The `e2e` phase includes building and starting the app under test; the startup check and the Docker image build do not count.
182
+ `wb test-on-ci` streams complete stdout and stderr, including with `--silent`, without saving a local log. Each phase reports its package, duration, and exit code. The final summary includes failed phases, their working directories, and rerun commands. `--dry-run` labels constructed commands with `Would run` and omits phase completion results. CI workflows own log storage and artifact uploads. `--max-minutes <n>` fails the run when the `unit`, `e2e`, and `post` phases of all packages take longer than `n` minutes in total, even when every test passed, and lists those phases from slowest to fastest. The `e2e` phase includes building and starting the app under test; the startup check and the Docker image build do not count.
183
+
184
+ A package whose `package.json` defines a `test/post` script gets a `post` phase: after the unit and E2E tests of every package pass, `wb test-on-ci` and `wb test` run the script of each such package through the package manager, including a package that has no such tests. Use it for a test suite the JavaScript runners cannot run, such as Gradle, Maven, or RSpec. The script cannot be filtered, so `wb test` and `wb verify --full` skip it when test paths, `--grep`, or Playwright arguments select tests.
178
185
 
179
186
  For `wb verify` and `wb verify --full`, a log-write failure falls back to printing subsequent raw output. If a log cannot be completed, the command reports the log error and fails an otherwise successful run; an existing nonzero command exit status is preserved.
180
187