@plune-ai/cli 0.39.6 → 0.39.8

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 CHANGED
@@ -343,6 +343,38 @@ elsewhere, a link that points outside) is refused with the same line, and the fi
343
343
  Console output kept per suite rather than per test (`jest-junit`) names no test, so nothing is read from it.
344
344
  For Jest, use Allure below.
345
345
 
346
+ ### A trace link per result
347
+
348
+ A result can carry the link to its trace in your own observability (a Langfuse or OTel trace): Plune keeps
349
+ the link with the result, never the trace itself. A JUnit report gives it as a property of
350
+ the test case, and a Playwright JSON report as a `PluneTrace` annotation, named as `PluneId` is:
351
+
352
+ ```xml
353
+ <testcase classname="shop.Checkout" name="pays by card">
354
+ <properties>
355
+ <property name="plune.trace.url" value="https://langfuse.example.com/project/shop/traces/7f3c2a"/>
356
+ </properties>
357
+ </testcase>
358
+ ```
359
+
360
+ ```ts
361
+ test('pays by card', async () => {
362
+ // a static link can also go in the test's details: { annotation: { type: 'PluneTrace', description: url } }
363
+ test.info().annotations.push({ type: 'PluneTrace', description: traceUrl });
364
+ });
365
+ ```
366
+
367
+ In Playwright JSON each attempt's own annotation wins, so a retry keeps its own trace. Playwright's
368
+ `junit` reporter writes an annotation as a property of the same name, `<property name="PluneTrace" …/>`,
369
+ and a JUnit import reads that too, so the same `PluneTrace` annotation works through either reporter.
370
+ A test case that carries both properties sends `plune.trace.url`. The link is trimmed; one the platform would refuse
371
+ (not `https://`, no host, a user name or password, a space or control character, over 2048
372
+ characters) is not sent, the result is sent without it, and the import says so:
373
+
374
+ ```text
375
+ plune: "checkout › refuses an expired card": trace link not sent (must be an https address) — the result is imported without it.
376
+ ```
377
+
346
378
  ### An `allure-results` folder
347
379
 
348
380
  Every Allure adapter (pytest, JUnit 5, TestNG, Playwright, Cypress, Jest, Vitest, WebdriverIO, .NET) writes
@@ -589,6 +621,20 @@ none of them is sent again. Against a platform older than the bulk routes (it an
589
621
  sends one request per file, as before; it decides by that answer, not by a version. A value outside the range is
590
622
  ignored with a warning, and the default is used. The Playwright reporter reads the same variables.
591
623
 
624
+ ### A secret in an error or a text attachment
625
+
626
+ Before a result goes out, its error text and its text attachments (`text/plain` and `application/json`, not
627
+ traces or pictures) are checked with the same rules that mask the code snapshot. Something that looks like a secret
628
+ gets a warning that names the test, the text, the line and the value's length, never the value; the result is sent as
629
+ it is:
630
+
631
+ ```text
632
+ plune: the error text of "signs in" holds what looks like a secret on line 4 (40 characters) — sent as it is; mask it in the test, or set PLUNE_SECRET_CHECK=0 to turn this check off.
633
+ ```
634
+
635
+ The check is on by default, in `plune run import` and in the Playwright reporter. `PLUNE_SECRET_CHECK=0` (or `false`,
636
+ `no`, `off`) turns it off.
637
+
592
638
  ### When a test is deleted
593
639
 
594
640
  A test that vanishes from the code stays in Plune as an active case until something says otherwise.
@@ -606,6 +652,15 @@ it back by itself. Set the variable only on the job that runs everything: a run
606
652
  lost a shard (`notRun` is not empty) never detaches anything. `plune run start` has no list of
607
653
  tests to compare against, so the flag means nothing there.
608
654
 
655
+ A failures-only Playwright JSON report (`onlyFailures: true` on the `json` reporter, or
656
+ `PLAYWRIGHT_JSON_ONLY_FAILURES=1`) holds only the tests that failed or were flaky, so it is not the
657
+ list of what ran: the import sends its results as usual and ignores `PLUNE_FULL_RUN` for it, saying
658
+ so in one line. The import knows such a report by the reporter's options in it, or by its stats
659
+ counting no test that passed or was skipped. When nothing failed, the report is empty: the import
660
+ says there is nothing to import and exits 0 without opening a run. To detach deleted tests, run
661
+ the full suite with a report that keeps every test. A JUnit report written with `onlyFailures`
662
+ carries no such sign, so do not set `PLUNE_FULL_RUN` on its import.
663
+
609
664
  ### What the run is called
610
665
 
611
666
  A run nobody named is called after the directory, the minute it started and where it ran —
@@ -663,6 +718,14 @@ Claude Code:
663
718
  claude mcp add plune -- npx -y @plune-ai/cli mcp serve
664
719
  ```
665
720
 
721
+ Or as a Claude Code plugin, which adds the server and the skills (`plune`, `qa-mission`,
722
+ `plune-mcp-evals`) in one install, and pins the server to the CLI version of the plugin:
723
+
724
+ ```bash
725
+ claude plugin marketplace add plune-ai/cli
726
+ claude plugin install plune@plune
727
+ ```
728
+
666
729
  Codex (`~/.codex/config.toml`):
667
730
 
668
731
  ```toml