testguard-cli 0.3.0__tar.gz → 0.3.1__tar.gz
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.
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/AGENTS.md +9 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/CHANGELOG.md +16 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/PKG-INFO +2 -2
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/README.md +1 -1
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/action.yml +1 -1
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/package-lock.json +2 -2
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/package.json +1 -1
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/packaging/homebrew/testguard.rb +1 -1
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/pyproject.toml +1 -1
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/brief/brief.mjs +1 -1
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/init/init.mjs +6 -2
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/init.test.mjs +8 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.codex/hooks.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.gitattributes +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/dependabot.yml +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/scripts/install-smoke.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/scripts/sync-release-version.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/workflows/auto-merge.yml +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/workflows/ci.yml +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/workflows/release.yml +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/workflows/scheduled-release.yml +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.github/workflows/supply-chain.yml +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.gitignore +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.npmignore +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.npmrc +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/.pre-commit-hooks.yaml +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/CLAUDE.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/CODE_OF_CONDUCT.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/CONTRIBUTING.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/LICENSE +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/PRIVACY.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/SECURITY.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/SUPPORT.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/bench/README.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/cli/testguard.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/.gitignore +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/README.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/expected.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/package.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/src/export.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/src/redact.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/test/flaky.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/test/redact.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/testguard.claims.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/fixtures/known-answer/vitest.config.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/GATE-SEMANTICS.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/README.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/baseline.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/brief.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/calibration.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/claims.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/evidence-provisional.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/evidence.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/ignore.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/status.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/baseline.bad-fingerprint-key.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/baseline.zero-count.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/brief.text-without-heading.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/brief.unknown-verdict-key.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/calibration.p-outside-ci.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/calibration.positives-exceed-n.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.absolute-path.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.duplicate-fault-id.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.missing-provenance.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.noop-fault.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.occurrence-exceeds-hits.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.parent-traversal.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.flaky-defender-without-flakiness.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.killed-by-non-assertion.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.killed-on-red-baseline.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.killed-without-n-runs.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.provisional-flag-on-confirmed-run.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.rank-extra-property.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.single-run-without-provisional.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.undeclared-killers-without-reason.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.unknown-verdict.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.unverifiable-without-reason.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.wrong-fingerprint.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/ignore.missing-reason.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/ignore.short-reason.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/status.clean-with-new-findings.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/status.write-test-without-target.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/schemas.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/lib/fingerprint.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/lib/validate.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/schemas/baseline.schema.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/schemas/brief.schema.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/schemas/calibration.schema.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/schemas/claims.schema.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/schemas/common.schema.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/schemas/evidence.schema.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/schemas/ignore.schema.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/schemas/status.schema.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/baseline/baseline.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/claims/annotations.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/claims/load.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/cli.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/commands/baseline.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/commands/brief.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/commands/claims.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/commands/init.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/commands/probe.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/commands/scaffold.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/commands/status.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/evidence/writer.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/git.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/init/templates/SKILL.md +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/probe/classify.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/probe/discover.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/probe/inject.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/probe/probe.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/probe/rank.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/probe/runner-vitest.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/probe/worktree.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/render.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/scaffold/producers.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/scaffold/scaffold.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/status/status.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/util/glob.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/src/util/hash.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/annotations.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/baseline.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/brief.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/classify.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/discover.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/glob.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/inject.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/probe-preconditions.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/probe.fixture.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/rank-aliases.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/runner-command.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/runner-vitest.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/scaffold.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/snapshot.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/status.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/worktree.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/test/writer.test.mjs +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/testguard.claims.json +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/testguard_cli/__init__.py +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/testguard_cli/wrapper.py +0 -0
- {testguard_cli-0.3.0 → testguard_cli-0.3.1}/vitest.config.mjs +0 -0
|
@@ -56,3 +56,12 @@ node cli/testguard.mjs scaffold src/probe/classify.mjs --json # what the produ
|
|
|
56
56
|
Dependabot minor/patch PRs and automated release PRs auto-merge when the exact
|
|
57
57
|
CI run is green on all three Node legs. Majors and anything else wait for a
|
|
58
58
|
human. Release publishing is OIDC-only; there are no tokens in this repo.
|
|
59
|
+
|
|
60
|
+
<!-- testguard:begin -->
|
|
61
|
+
## TestGuard
|
|
62
|
+
|
|
63
|
+
This project's tests are verified by [TestGuard](https://github.com/raccioly/testguard).
|
|
64
|
+
Before writing or changing tests, run `testguard status --json` and follow `next`.
|
|
65
|
+
The full operating loop and the verdict table are in `.claude/skills/testguard/SKILL.md`.
|
|
66
|
+
Never make a fault die by editing `testguard.claims.json`; write the test. Claim edits are recorded in the evidence.
|
|
67
|
+
<!-- testguard:end -->
|
|
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.1] - 2026-09-17
|
|
11
|
+
|
|
12
|
+
Dogfooding `init` and `status` on this repository.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- `init` no longer adds per-file `.gitignore` lines to a project that already
|
|
17
|
+
ignores `.testguard/` wholesale; it notes instead that `baseline.json` is
|
|
18
|
+
meant to be committed.
|
|
19
|
+
- The brief no longer says "everything is new" when nothing is unproven.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- This repository now carries its own `AGENTS.md` TestGuard section, written
|
|
24
|
+
by `testguard init`.
|
|
25
|
+
|
|
10
26
|
## [0.3.0] - 2026-09-17
|
|
11
27
|
|
|
12
28
|
The agent operating layer. TestGuard is meant to be run by AI agents; this
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: testguard-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Proves a test suite actually defends the claims a project makes: injects the faults those claims forbid and reports every one the tests miss. Python wrapper for the Node.js CLI (requires Node.js 20+).
|
|
5
5
|
Project-URL: Homepage, https://github.com/raccioly/testguard
|
|
6
6
|
Project-URL: Documentation, https://github.com/raccioly/testguard#readme
|
|
@@ -76,7 +76,7 @@ tests were written against the survivors, 39/39 were killed.
|
|
|
76
76
|
| npm | `npm i -D testguard-cli` then `npx testguard probe` |
|
|
77
77
|
| pip | `pip install testguard-cli` then `testguard probe` (needs Node ≥ 20) |
|
|
78
78
|
| Homebrew | `brew tap raccioly/tap && brew install testguard` |
|
|
79
|
-
| GitHub Action | `uses: raccioly/testguard@v0.3.
|
|
79
|
+
| GitHub Action | `uses: raccioly/testguard@v0.3.1` — see [`action.yml`](./action.yml) |
|
|
80
80
|
| pre-commit | `repo: https://github.com/raccioly/testguard`, hooks `testguard-claims`, `testguard-probe` |
|
|
81
81
|
|
|
82
82
|
Projects that set `min-release-age` in `.npmrc` cannot see a version published
|
|
@@ -52,7 +52,7 @@ tests were written against the survivors, 39/39 were killed.
|
|
|
52
52
|
| npm | `npm i -D testguard-cli` then `npx testguard probe` |
|
|
53
53
|
| pip | `pip install testguard-cli` then `testguard probe` (needs Node ≥ 20) |
|
|
54
54
|
| Homebrew | `brew tap raccioly/tap && brew install testguard` |
|
|
55
|
-
| GitHub Action | `uses: raccioly/testguard@v0.3.
|
|
55
|
+
| GitHub Action | `uses: raccioly/testguard@v0.3.1` — see [`action.yml`](./action.yml) |
|
|
56
56
|
| pre-commit | `repo: https://github.com/raccioly/testguard`, hooks `testguard-claims`, `testguard-probe` |
|
|
57
57
|
|
|
58
58
|
Projects that set `min-release-age` in `.npmrc` cannot see a version published
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testguard-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "testguard-cli",
|
|
9
|
-
"version": "0.3.
|
|
9
|
+
"version": "0.3.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"ajv": "8.20.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testguard-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Proves a test suite defends the claims a project makes: injects the faults those claims forbid and reports every one the tests fail to detect.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
class Testguard < Formula
|
|
14
14
|
desc "Proves a test suite defends the claims a project makes"
|
|
15
15
|
homepage "https://github.com/raccioly/testguard"
|
|
16
|
-
url "https://registry.npmjs.org/testguard-cli/-/testguard-cli-0.3.
|
|
16
|
+
url "https://registry.npmjs.org/testguard-cli/-/testguard-cli-0.3.1.tgz"
|
|
17
17
|
sha256 "385d69f9d3c153b934d9c1cb6a2c754eb9b221b0a8c0ba8b805858384d2d4678"
|
|
18
18
|
license "MIT"
|
|
19
19
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "testguard-cli"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
description = "Proves a test suite actually defends the claims a project makes: injects the faults those claims forbid and reports every one the tests miss. Python wrapper for the Node.js CLI (requires Node.js 20+)."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -66,7 +66,7 @@ export function renderBriefText(brief, { hasBaseline, total }) {
|
|
|
66
66
|
'',
|
|
67
67
|
...(brief.provisional ? ['**PROVISIONAL** — this evidence came from fewer than three confirmation runs; treat every verdict below as unconfirmed and re-probe with --confirm 3 before acting on it.', ''] : []),
|
|
68
68
|
`testguard ${brief.tool.version}${brief.head ? ` @ ${brief.head.slice(0, 12)}` : ''} — ${brief.summary.claims} claims, ${total} faults probed, ${unproven} unproven` +
|
|
69
|
-
(hasBaseline ? ` (${brief.summary.new} new since baseline).` : ' (no baseline; everything is new).'),
|
|
69
|
+
(unproven === 0 ? '.' : hasBaseline ? ` (${brief.summary.new} new since baseline).` : ' (no baseline; everything is new).'),
|
|
70
70
|
];
|
|
71
71
|
if (brief.next) lines.push('', `NEXT [${brief.next.action}]: ${brief.next.command}`, ` why: ${brief.next.why}`);
|
|
72
72
|
if (brief.items.length === 0) {
|
|
@@ -67,8 +67,12 @@ export function initProject({ projectDir, force = false }) {
|
|
|
67
67
|
|
|
68
68
|
const giPath = join(projectDir, '.gitignore');
|
|
69
69
|
const gi = existsSync(giPath) ? readFileSync(giPath, 'utf8') : '';
|
|
70
|
-
const
|
|
71
|
-
|
|
70
|
+
const entries = gi.split('\n').map((x) => x.trim());
|
|
71
|
+
const dirIgnored = entries.some((x) => /^\/?\.testguard\/?$/.test(x));
|
|
72
|
+
const missing = dirIgnored ? [] : GITIGNORE_LINES.filter((l) => !entries.includes(l));
|
|
73
|
+
if (dirIgnored) {
|
|
74
|
+
skipped.push('.gitignore ignores .testguard/ entirely — note that baseline.json should be committed; ignore only the regenerated files if you adopt a baseline');
|
|
75
|
+
} else if (missing.length) {
|
|
72
76
|
writeFileSync(giPath, (gi ? gi.replace(/\s*$/, '\n') : '') + '# TestGuard: regenerated per run (baseline.json IS committed)\n' + missing.join('\n') + '\n');
|
|
73
77
|
done.push(`.gitignore: ${missing.length} line${missing.length === 1 ? '' : 's'} added`);
|
|
74
78
|
} else {
|
|
@@ -39,6 +39,14 @@ describe('init', () => {
|
|
|
39
39
|
expect(third.done).toEqual(['.claude/skills/testguard/SKILL.md (replaced)']);
|
|
40
40
|
expect(readFileSync(join(dir, '.claude', 'skills', 'testguard', 'SKILL.md'), 'utf8')).toContain('testguard status --json');
|
|
41
41
|
});
|
|
42
|
+
it('adds no per-file lines when the whole .testguard/ directory is already ignored, and says why that matters', () => {
|
|
43
|
+
const dir = mkdtempSync(join(tmpdir(), 'tg-init-dir-'));
|
|
44
|
+
writeFileSync(join(dir, '.gitignore'), 'node_modules/\n.testguard/\n');
|
|
45
|
+
const r = initProject({ projectDir: dir });
|
|
46
|
+
expect(readFileSync(join(dir, '.gitignore'), 'utf8')).toBe('node_modules/\n.testguard/\n');
|
|
47
|
+
expect(r.skipped.some((s) => /baseline\.json should be committed/.test(s))).toBe(true);
|
|
48
|
+
});
|
|
49
|
+
|
|
42
50
|
it('refuses to touch a settings.json it cannot parse', () => {
|
|
43
51
|
const dir = mkdtempSync(join(tmpdir(), 'tg-init-bad-'));
|
|
44
52
|
mkdirSync(join(dir, '.claude'));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/examples/evidence-provisional.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/baseline.zero-count.json
RENAMED
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/brief.text-without-heading.json
RENAMED
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/brief.unknown-verdict-key.json
RENAMED
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/calibration.p-outside-ci.json
RENAMED
|
File without changes
|
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.absolute-path.json
RENAMED
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.duplicate-fault-id.json
RENAMED
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.missing-provenance.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/claims.parent-traversal.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.unknown-verdict.json
RENAMED
|
File without changes
|
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/evidence.wrong-fingerprint.json
RENAMED
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/ignore.missing-reason.json
RENAMED
|
File without changes
|
{testguard_cli-0.3.0 → testguard_cli-0.3.1}/spec/conformance/invalid/ignore.short-reason.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|