tuner-testkit 6.3.0__tar.gz → 7.0.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.
- {tuner_testkit-6.3.0/tuner_testkit.egg-info → tuner_testkit-7.0.1}/PKG-INFO +60 -19
- tuner_testkit-7.0.1/README.md +224 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/pyproject.toml +15 -2
- tuner_testkit-7.0.1/tuner_testkit/__init__.py +5 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/router.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/auth.py +0 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/capture.py +2 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/freeze.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/normalize.py +0 -35
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/pipeline.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/client.py +2 -3
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/jsonpath.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/model.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/_shared/changelog.py +28 -9
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/cli.py +0 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/playwright_tap.py +4 -4
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/cli.py +85 -16
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/agents/bdd-asset-pipeline.md +12 -5
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/agents/sut-self-learning.md +10 -9
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/agents/sut-source-to-design.md +5 -5
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/agent-task-log.mdc +28 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/apps-authoring.mdc +15 -6
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/apps-handover.mdc +9 -4
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/assets-knowledge.mdc +39 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/bdd-pipeline-gates.mdc +9 -7
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/commit-convention.mdc +8 -8
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/config.mdc +24 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/defects.mdc +33 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/explore-safety.mdc +4 -4
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/index-hygiene.mdc +37 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/knowledge.mdc +30 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/packages-db.mdc +9 -9
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/packages-page-test.mdc +4 -4
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/testcases.mdc +13 -6
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/work-task.mdc +8 -5
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/analyze-mcp-network/SKILL.md +2 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/create-action-word/SKILL.md +14 -2
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/create-app/SKILL.md +96 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/derive-design-knowledge/SKILL.md +7 -6
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/derive-feature-sets/SKILL.md +3 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/derive-test-design/SKILL.md +6 -4
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/dump-ddl/SKILL.md +15 -14
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/execute-testsheet/SKILL.md +65 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/explore-sut/SKILL.md +13 -8
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/feature-authoring/SKILL.md +2 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/feature-review-lint/SKILL.md +2 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/freeze-api-objects/SKILL.md +20 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/generate-test-report/SKILL.md +15 -4
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/generate-testsheet-report/SKILL.md +9 -7
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/health-check/SKILL.md +105 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-bdd-assets/SKILL.md +40 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-behave-steps/SKILL.md +2 -1
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-config/SKILL.md +68 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-defectlib/SKILL.md +71 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-index/SKILL.md +59 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-page-objects/SKILL.md +13 -3
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-pytest/SKILL.md +55 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-testcases/SKILL.md +18 -6
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-testsheet/SKILL.md +16 -6
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-wiki/SKILL.md +62 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/reuse-analysis/SKILL.md +3 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/run-feature-playwright-mcp/SKILL.md +8 -3
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/run-test-execution/SKILL.md +11 -6
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/upgrade-framework/SKILL.md +85 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/AGENTS.md +119 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/MANIFEST.txt +2 -1
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.0.0.md +20 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.1.0.md +19 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.2.0.md +27 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.3.0.md +20 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.4.0.md +17 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.0.0.md +38 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.1.0.md +15 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.2.0.md +15 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.3.0.md +15 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.3.1.md +7 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-6.0.0.md +21 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-6.1.0.md +16 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-6.2.0.md +14 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-6.3.0.md +24 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-7.0.0.md +82 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-7.0.1.md +12 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/action-words-syntax.md +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/agent-task-log.md +8 -5
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/api-objects-syntax.md +4 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/apps-authoring-syntax.md +38 -8
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/artifacts-layout.md +7 -5
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/assets-knowledge-syntax.md +54 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/bdd-run-gherkin-in-playwrightMCP.md +5 -3
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/browser-channel.md +37 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/commit-convention.md +6 -4
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/config-syntax.md +103 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/data-syntax.md +53 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/defect-syntax.md +134 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/design-knowledge-syntax.md +4 -4
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/knowledge-syntax.md +98 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/metadata-conventions.md +109 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/page-objects-syntax.md +1 -1
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/ports.md +56 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/sut-self-learning.md +9 -8
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/test-design-syntax.md +2 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/testcase-syntax.md +22 -4
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/work-task.md +14 -9
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/pre-commit +31 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/pre-push +28 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/validate_commit_msg.py +3 -1
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/paths.py +49 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/source.py +18 -5
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/targets.py +364 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/dna/tests/test_workspace_view.py +143 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dump_ddl.py +8 -9
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/persist.py +3 -3
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/index_ai/registry.py +45 -11
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/__main__.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/manifest.py +9 -4
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/scaffold.py +21 -9
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/INDEX.project.md +33 -15
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/config/env.py +31 -35
- tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/stubs/config/env_local.py.example +81 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/stubs/data/sut-accounts.example.yaml +30 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/gitignore +2 -1
- tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/stubs/knowledge/wiki/index.md +26 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/stubs/knowledge/wiki/log.md +4 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/ui_environment.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/tests/test_git_hooks.py +7 -2
- tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/tests/test_release_manifest.py +30 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/tests/test_scaffold.py +24 -9
- tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/__init__.py +1 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/__main__.py +3 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/cli.py +97 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/convert.py +256 -0
- tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/tests/test_convert.py +92 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/cli.py +0 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/session.py +2 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/tests/test_cli.py +0 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/cli.py +2 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/store.py +15 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/tests/test_store.py +4 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/cli.py +7 -3
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/draft.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/profile.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/sheet.py +2 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/template_build.py +5 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tests/test_report.py +5 -5
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/scan.py +63 -30
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/tests/test_build.py +22 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/config.py +134 -18
- tuner_testkit-7.0.1/tuner_testkit/config_schema.py +248 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/db/client.py +7 -5
- tuner_testkit-7.0.1/tuner_testkit/defects/__init__.py +6 -0
- tuner_testkit-7.0.1/tuner_testkit/defects/__main__.py +91 -0
- tuner_testkit-7.0.1/tuner_testkit/defects/template.py +84 -0
- tuner_testkit-7.0.1/tuner_testkit/defects/tests/test_defects.py +138 -0
- tuner_testkit-7.0.1/tuner_testkit/defects/validate.py +207 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/medical.py +9 -9
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/context.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/core.py +2 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/hooks.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/scenario_file.py +2 -3
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/base.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/driver.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/locator.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/registry.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/session.py +0 -1
- tuner_testkit-7.0.1/tuner_testkit/ports.py +105 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/project.py +32 -3
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/testcases/tests/test_validate.py +47 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/testcases/validate.py +66 -2
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/manifest.py +14 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/runner.py +1 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/ai.html +5 -4
- tuner_testkit-7.0.1/tuner_testkit/workspace/changelog.py +225 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/cli.py +84 -2
- tuner_testkit-7.0.1/tuner_testkit/workspace/doctor.py +371 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/index_render.py +44 -6
- tuner_testkit-7.0.1/tuner_testkit/workspace/migrate.py +227 -0
- tuner_testkit-7.0.1/tuner_testkit/workspace/tests/test_changelog.py +91 -0
- tuner_testkit-7.0.1/tuner_testkit/workspace/tests/test_doctor.py +95 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/tests/test_index_render.py +38 -0
- tuner_testkit-7.0.1/tuner_testkit/workspace/tests/test_migrate.py +65 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1/tuner_testkit.egg-info}/PKG-INFO +60 -19
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/SOURCES.txt +46 -1
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/entry_points.txt +1 -0
- tuner_testkit-6.3.0/README.md +0 -183
- tuner_testkit-6.3.0/tuner_testkit/__init__.py +0 -5
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/rules/agent-task-log.mdc +0 -22
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/rules/assets-knowledge.mdc +0 -51
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/rules/index-hygiene.mdc +0 -36
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/skills/create-app/SKILL.md +0 -70
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/skills/init-content/SKILL.md +0 -170
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-index/SKILL.md +0 -60
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/skills/release-template/SKILL.md +0 -51
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/AGENTS.md +0 -93
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/docs/spec/assets-knowledge-syntax.md +0 -85
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/docs/spec/metadata-conventions.md +0 -71
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/pre-commit +0 -19
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/pre-push +0 -22
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/paths.py +0 -15
- tuner_testkit-6.3.0/tuner_testkit/apps/dna/targets.py +0 -182
- tuner_testkit-6.3.0/tuner_testkit/apps/init_repo/stubs/data/sut-accounts.example.yaml +0 -18
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/LICENSE +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/setup.cfg +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/api.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/db.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/generators.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/ids.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/wait.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/base.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/context.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/registry.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/app.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/errors.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/spec.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/store.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/codegen.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/mocks.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/sanitize.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/errors.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/_shared/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/addon.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/tests/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/tests/test_addon.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/build.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/hooks/sync_registry.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/hooks.json +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/bdd-asset-layering.mdc +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/bdd-stage-layout.mdc +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/packages-fake.mdc +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/packages-logging.mdc +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/behave-gerkin-syntax.md +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/behave-step-definitions.md +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/README.md +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/commit-msg +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/secret_scan.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/tests/test_cli.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/tests/test_targets.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/cli.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/tests/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/tests/test_cli.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/tests/test_persist.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/index_ai/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/index_ai/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/apps/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/behave.ini +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/action_words/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/action_words/_internal/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/action_words/_internal/params.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/action_words/models.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/api_objects/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/api_objects/auth.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/api_objects/recording/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/api_objects/registry.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/page_objects/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/page_objects/session.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/api_environment.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/api_steps/given.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/api_steps/then.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/api_steps/when.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/ui_steps/given.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/ui_steps/then.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/ui_steps/when.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/pytest/conftest.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/workbench.cmd +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/workbench.sh +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/cli.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/seed.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/tool.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/capture.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/codegen.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/freeze.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/inject.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/tests/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/tests/test_capture.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/tests/test_cli.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/tests/test_freeze.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/cli.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/tests/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/validate.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/mdparse.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/render.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/stats.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/templates/gjb438b.docx +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tests/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tests/conftest.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tests/test_stats.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tool.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/artifacts.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/build.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/directory.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/front_matter.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/tests/test_directory.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/tests/test_front_matter.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/db/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/db/connection.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/excel/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/excel/workbook.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/catalog.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/china.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/cli.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/core.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/wrappers.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/helpers.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/errors.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/harvest.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/health.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/model.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/steps.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/testing.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/testcases/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/testcases/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/tests/test_manifest.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/tests/test_runner.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/app.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/cli.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/kinds/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/kinds/app_generic.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/kinds/word_db_seed.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/kinds/word_generic.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/static/app.css +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/_params_form.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/ai_detail.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/base.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/env.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/history.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/home.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/knowledge.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/run.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/tool.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/tools.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/word.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/word_db_seed.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/words.html +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/tests/test_app.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/__init__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/__main__.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/meta.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/tests/test_meta.py +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/dependency_links.txt +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/requires.txt +0 -0
- {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tuner-testkit
|
|
3
|
-
Version:
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 7.0.1
|
|
4
|
+
Summary: TestPilot: shared test runtime, recorders, and DNA overlay for SUT test workspaces
|
|
5
5
|
Author: tuner-testkit contributors
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Requires-Python: >=3.12
|
|
@@ -48,11 +48,20 @@ Provides-Extra: dev
|
|
|
48
48
|
Requires-Dist: tuner-testkit[all]; extra == "dev"
|
|
49
49
|
Dynamic: license-file
|
|
50
50
|
|
|
51
|
-
# tuner-testkit
|
|
51
|
+
# TestPilot(tuner-testkit)
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
**TestPilot** 是一个测试助手:用一个 Git 仓库加一套 rule / skill / agent / hook,约束读这个仓库的 AI 怎么工作,
|
|
54
|
+
同时让测试工程师把知识、用例、测试单、报告、自动化资产、工具都存进同一个仓库维护。
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
运行库与 CLI 以 PyPI 包发布:发行名 **`tuner-testkit`**,导入名 **`tuner_testkit`**,命令 `tuner-*`。它提供公共运行库
|
|
57
|
+
(db / API / Web UI / 录制 / mock)以及 Cursor/git **DNA**(rules、skills、hooks、specs)。
|
|
58
|
+
|
|
59
|
+
业务数据(`knowledge/` 被测系统知识、`assets/` + `packages/` 测试资产、`apps/` 自定义工具、`tests/`)留在**各项目仓**,不进本包。
|
|
60
|
+
平台发新版本后,下游用 `uv` 升级并 `tuner-dna sync --prune`,不必整树拷贝运行库。
|
|
61
|
+
|
|
62
|
+
打开新仓后让 AI 先跑 skill **`health-check`**(体检与开场配置)。对外入口分三组:
|
|
63
|
+
知识(`maintain-wiki`、`dump-ddl`、`maintain-defectlib`)、动作(`maintain-testcases`、`maintain-testsheet`、`execute-testsheet`、
|
|
64
|
+
`generate-test-report`、`maintain-bdd-assets`、`maintain-pytest`)、可用性(`health-check`、`upgrade-framework`、`maintain-config`、`create-app`)。
|
|
56
65
|
|
|
57
66
|
---
|
|
58
67
|
|
|
@@ -71,14 +80,16 @@ uv tool install tuner-testkit
|
|
|
71
80
|
### 2. 初始化测试仓
|
|
72
81
|
|
|
73
82
|
```bash
|
|
74
|
-
tuner-init scaffold ../
|
|
75
|
-
cd ../
|
|
83
|
+
tuner-init scaffold ../acme
|
|
84
|
+
cd ../acme
|
|
76
85
|
uv sync
|
|
77
86
|
```
|
|
78
87
|
|
|
79
|
-
`scaffold`
|
|
88
|
+
`scaffold` 会铺分层目录(`knowledge/`、`assets/`、`packages/`、`apps/`、`data/`、`tests/`、`config/`、`work/tasks/`、`artifacts/`)、写入依赖 `tuner-testkit[db,api]>=<当前 kit 版本>` 的 `pyproject.toml`,并执行一次 `tuner-dna sync`(把 `.cursor/`、`docs/spec/`、`tools/git-hooks/`、`AGENTS.md` 放进**项目树**;平台专属内容不下发)。可在任意目录运行,不必先有测试仓。不要用 `tuner-testkit init repo`。
|
|
80
89
|
|
|
81
|
-
|
|
90
|
+
scaffold 之后让 AI 跑 `health-check`(底层是 `tuner-workspace doctor`),它会列出还缺的配置、账号、表结构、浏览器通道、日志端口等,并逐项补齐。
|
|
91
|
+
|
|
92
|
+
生成的文件夹名就是 `target` 路径的最后一段。`pyproject.toml` 里的项目名默认取这个文件夹名(`Acme` 会写成 `acme`)。需要另起项目名时加 `--name`:
|
|
82
93
|
|
|
83
94
|
```bash
|
|
84
95
|
tuner-init scaffold ../clients/acme --name acme-billing
|
|
@@ -111,14 +122,21 @@ uv sync
|
|
|
111
122
|
|
|
112
123
|
| 你写什么 | 放哪里 |
|
|
113
124
|
| --- | --- |
|
|
114
|
-
|
|
|
125
|
+
| 被测系统知识(DDL、需求、业务讲解、探索、design、缺陷) | `knowledge/`(`ddl/`、`raw/`、`wiki/`、`requirements/`、`defects/`) |
|
|
126
|
+
| 测试设计、功能用例、测试单、报告 | `assets/`(`testdesign/`、`testcases/`、`testsheet/`、`testreport/`) |
|
|
127
|
+
| 页面 / 接口资产 | `packages/page_objects/`、`packages/api_objects/`(有 OpenAPI 时 `tuner-openapi-import`) |
|
|
115
128
|
| 业务动作 | `packages/action_words/` |
|
|
116
129
|
| BDD / pytest | `tests/features/`、`tests/pytest/` |
|
|
117
|
-
|
|
|
118
|
-
|
|
|
130
|
+
| 本仓私有工具、端口适配器(如后端日志) | `apps/`(`python -m apps.<name>`) |
|
|
131
|
+
| 测试数据、账号(角色、权限) | `data/` |
|
|
132
|
+
| 「在哪、用什么」:环境、运维通道、端口绑定、浏览器通道、知识位置 | `config/`(`tuner-config show --json` / `validate`) |
|
|
119
133
|
|
|
120
134
|
代码里 `from tuner_testkit.db import …` / `from tuner_testkit.page_test import …`。密钥只放本机 `config/env_local.py` 或环境变量(`TUNER_ENV`、`TUNER_DB_<ALIAS>_*`),**不要提交**。
|
|
121
135
|
|
|
136
|
+
后端日志这类取数方式各团队不同的能力,kit 只定**端口契约**(`docs/spec/ports.md`),实现是本仓 `apps/` 里的自定义工具。
|
|
137
|
+
缺陷和用例一样有固定目录与模板:`knowledge/defects/<DEF-ID>.md`(`docs/spec/defect-syntax.md`,skill `maintain-defectlib`)。
|
|
138
|
+
维护过的库(用例、需求、缺陷、wiki、接口与页面资产)各有一份入库的 `CHANGELOG.md`,`pre-commit` 会检查。
|
|
139
|
+
|
|
122
140
|
录制产物同样写到项目仓 `packages/`,不会写进 venv。
|
|
123
141
|
|
|
124
142
|
### 4. 获取 PyPI 上的更新
|
|
@@ -166,16 +184,20 @@ uv sync
|
|
|
166
184
|
|
|
167
185
|
只改 `pyproject.toml` 里的版本再 `uv lock` / `uv sync` 也可以。一个 wheel 不能「只升 web-ui、钉死旧 db」。
|
|
168
186
|
|
|
169
|
-
**③ 同步 DNA
|
|
187
|
+
**③ 同步 DNA、按说明迁移、提交**
|
|
170
188
|
|
|
171
|
-
`uv add` / `uv sync` 只更新 site-packages 里的运行库。Cursor 读的是项目树里的 `.cursor/`、`docs/spec/`、`tools/git-hooks
|
|
189
|
+
`uv add` / `uv sync` 只更新 site-packages 里的运行库。Cursor 读的是项目树里的 `.cursor/`、`docs/spec/`、`docs/changelog/TEMPLATE-*.md`、`tools/git-hooks/`、`AGENTS.md`,必须再铺一层:
|
|
172
190
|
|
|
173
191
|
```bash
|
|
174
|
-
tuner-dna sync
|
|
175
|
-
tuner-dna check
|
|
176
|
-
git add -A && git commit
|
|
192
|
+
tuner-dna sync --prune # 没被本地改过的文件自动更新;上游删掉的文件一并删除
|
|
193
|
+
tuner-dna check # 本地改过的文件会列为 edited
|
|
177
194
|
```
|
|
178
195
|
|
|
196
|
+
`tuner-dna sync` 在项目根写 `.tuner-dna.json`(每个文件的哈希,入库),据此区分「没动过、可以直接更新」和「本地改过」。
|
|
197
|
+
本地改过的 DNA 文件默认保留;把定制移到 `.cursor/rules/<名字>.local.mdc` 或 `AGENTS.local.md`(sync 永不触碰)后再加 `--overwrite`。
|
|
198
|
+
然后读 `docs/changelog/TEMPLATE-<版本>.md` 做布局或配置迁移(例如 7.0.0 的 `tuner-workspace migrate knowledge`),最后一次提交。
|
|
199
|
+
这一整套可以交给 skill **`upgrade-framework`**。
|
|
200
|
+
|
|
179
201
|
`tuner-dna check` 核对项目树 DNA 是否与**当前 PATH 上那份** kit 一致。建议先 `uv tool upgrade`,再 `sync`,避免 CLI 还是旧包、`.venv` 已是新包。
|
|
180
202
|
|
|
181
203
|
**其他 AI IDE**:DNA 以 Cursor 布局为源,`tuner-dna sync --ide claude,agents`(或 `all`)把 skills 渲染到
|
|
@@ -207,6 +229,17 @@ git add -A && git commit
|
|
|
207
229
|
|
|
208
230
|
CLI 与 `python -m tuner_testkit.…` 等价,例如 `tuner-recorder`、`tuner-page-recorder`、`tuner-api-recorder`、`tuner-mock-server`。依赖 extra 的命令在业务仓用 `uv run tuner-dump-ddl` / `uv run tuner-recorder`。
|
|
209
231
|
|
|
232
|
+
TestPilot 的确定性入口(默认 wheel 即可):
|
|
233
|
+
|
|
234
|
+
| 命令 | 作用 |
|
|
235
|
+
| --- | --- |
|
|
236
|
+
| `tuner-workspace doctor` | 体检:还缺哪些配置、账号、表结构、通道、端口绑定,DNA 是否漂移 |
|
|
237
|
+
| `tuner-config show --json` / `validate` | 读配置(密钥打码)/ 校验配置 |
|
|
238
|
+
| `tuner-workspace changelog append` / `check` | 维护库的 changelog;提交前校验 |
|
|
239
|
+
| `tuner-workspace migrate knowledge` | 旧布局迁到 `knowledge/` |
|
|
240
|
+
| `tuner-openapi-import <spec>` | 从 OpenAPI / Swagger 冻结 api_objects |
|
|
241
|
+
| `tuner-dna sync --prune` / `check --json` | 升级 DNA,保留本地改动 |
|
|
242
|
+
|
|
210
243
|
---
|
|
211
244
|
|
|
212
245
|
## 安全
|
|
@@ -226,8 +259,16 @@ uv sync --extra all
|
|
|
226
259
|
|
|
227
260
|
`uv sync --extra dev` 与 `--extra all` 等价(`dev` 只是引用 `[all]`)。
|
|
228
261
|
|
|
262
|
+
Lint 与 CI 用同一个 ruff 版本,规则写在 `pyproject.toml` 的 `[tool.ruff.lint]`(E4 / E7 / E9 / F / B / BLE:语法与导入、pyflakes、bugbear、宽泛 except):
|
|
263
|
+
|
|
264
|
+
```powershell
|
|
265
|
+
uvx ruff@0.17.3 check .
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
宽泛的 `except Exception` 要写理由:`# noqa: BLE001 -- <为什么>`。
|
|
269
|
+
|
|
229
270
|
本仓是**平台仓**,不是 workspace。`dogfood/` 是用 `tuner-init scaffold dogfood --no-ai` 生成的 workspace 示范
|
|
230
|
-
(被测系统 = 平台本身,uv workspace 成员,共用 `.venv`):路线图在 `dogfood/
|
|
271
|
+
(被测系统 = 平台本身,uv workspace 成员,共用 `.venv`):路线图在 `dogfood/knowledge/wiki/domain-notes/platform/roadmap.md`,
|
|
231
272
|
验收活文档在 `dogfood/tests/features/`。见 [`dogfood/README.md`](dogfood/README.md)。
|
|
232
273
|
|
|
233
|
-
6.3.0 发行说明(测试单出 GJB438B 报告)见 [`docs/changelog/TEMPLATE-6.3.0.md`](docs/changelog/TEMPLATE-6.3.0.md);6.2.0 发行说明(测试单)见 [`docs/changelog/TEMPLATE-6.2.0.md`](docs/changelog/TEMPLATE-6.2.0.md);6.1.0 发行说明(scaffold 项目名)见 [`docs/changelog/TEMPLATE-6.1.0.md`](docs/changelog/TEMPLATE-6.1.0.md);6.0.0 发行说明(一条用例一个文件)见 [`docs/changelog/TEMPLATE-6.0.0.md`](docs/changelog/TEMPLATE-6.0.0.md);5.3.1 发行说明(已回答提问归档)见 [`docs/changelog/TEMPLATE-5.3.1.md`](docs/changelog/TEMPLATE-5.3.1.md);5.3.0 发行说明(功能用例集 `assets/testcases/`)见 [`docs/changelog/TEMPLATE-5.3.0.md`](docs/changelog/TEMPLATE-5.3.0.md);5.2.0 发行说明(work task / 测试设计 / 证据附件)见 [`docs/changelog/TEMPLATE-5.2.0.md`](docs/changelog/TEMPLATE-5.2.0.md);5.1.0 发行说明(工作台 / meta stamp / `--json`)见 [`docs/changelog/TEMPLATE-5.1.0.md`](docs/changelog/TEMPLATE-5.1.0.md);5.0.0(Plane Job 协议退场、`tuner-workspace`)见 [`TEMPLATE-5.0.0.md`](docs/changelog/TEMPLATE-5.0.0.md);4.3.0 见 [`TEMPLATE-4.3.0.md`](docs/changelog/TEMPLATE-4.3.0.md);3.x → 4.x 迁移见 [`TEMPLATE-4.0.0.md`](docs/changelog/TEMPLATE-4.0.0.md)。平台能力地图见 [`INDEX.md`](INDEX.md)。
|
|
274
|
+
7.0.1 发行说明(DNA 比对不受换行符影响)见 [`docs/changelog/TEMPLATE-7.0.1.md`](docs/changelog/TEMPLATE-7.0.1.md);7.0.0 发行说明(TestPilot:`knowledge/` 知识层、配置扩展、端口与自定义 apps、体检 / 升级 / 配置 skill)见 [`docs/changelog/TEMPLATE-7.0.0.md`](docs/changelog/TEMPLATE-7.0.0.md);6.3.0 发行说明(测试单出 GJB438B 报告)见 [`docs/changelog/TEMPLATE-6.3.0.md`](docs/changelog/TEMPLATE-6.3.0.md);6.2.0 发行说明(测试单)见 [`docs/changelog/TEMPLATE-6.2.0.md`](docs/changelog/TEMPLATE-6.2.0.md);6.1.0 发行说明(scaffold 项目名)见 [`docs/changelog/TEMPLATE-6.1.0.md`](docs/changelog/TEMPLATE-6.1.0.md);6.0.0 发行说明(一条用例一个文件)见 [`docs/changelog/TEMPLATE-6.0.0.md`](docs/changelog/TEMPLATE-6.0.0.md);5.3.1 发行说明(已回答提问归档)见 [`docs/changelog/TEMPLATE-5.3.1.md`](docs/changelog/TEMPLATE-5.3.1.md);5.3.0 发行说明(功能用例集 `assets/testcases/`)见 [`docs/changelog/TEMPLATE-5.3.0.md`](docs/changelog/TEMPLATE-5.3.0.md);5.2.0 发行说明(work task / 测试设计 / 证据附件)见 [`docs/changelog/TEMPLATE-5.2.0.md`](docs/changelog/TEMPLATE-5.2.0.md);5.1.0 发行说明(工作台 / meta stamp / `--json`)见 [`docs/changelog/TEMPLATE-5.1.0.md`](docs/changelog/TEMPLATE-5.1.0.md);5.0.0(Plane Job 协议退场、`tuner-workspace`)见 [`TEMPLATE-5.0.0.md`](docs/changelog/TEMPLATE-5.0.0.md);4.3.0 见 [`TEMPLATE-4.3.0.md`](docs/changelog/TEMPLATE-4.3.0.md);3.x → 4.x 迁移见 [`TEMPLATE-4.0.0.md`](docs/changelog/TEMPLATE-4.0.0.md)。平台能力地图见 [`INDEX.md`](INDEX.md)。
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# TestPilot(tuner-testkit)
|
|
2
|
+
|
|
3
|
+
**TestPilot** 是一个测试助手:用一个 Git 仓库加一套 rule / skill / agent / hook,约束读这个仓库的 AI 怎么工作,
|
|
4
|
+
同时让测试工程师把知识、用例、测试单、报告、自动化资产、工具都存进同一个仓库维护。
|
|
5
|
+
|
|
6
|
+
运行库与 CLI 以 PyPI 包发布:发行名 **`tuner-testkit`**,导入名 **`tuner_testkit`**,命令 `tuner-*`。它提供公共运行库
|
|
7
|
+
(db / API / Web UI / 录制 / mock)以及 Cursor/git **DNA**(rules、skills、hooks、specs)。
|
|
8
|
+
|
|
9
|
+
业务数据(`knowledge/` 被测系统知识、`assets/` + `packages/` 测试资产、`apps/` 自定义工具、`tests/`)留在**各项目仓**,不进本包。
|
|
10
|
+
平台发新版本后,下游用 `uv` 升级并 `tuner-dna sync --prune`,不必整树拷贝运行库。
|
|
11
|
+
|
|
12
|
+
打开新仓后让 AI 先跑 skill **`health-check`**(体检与开场配置)。对外入口分三组:
|
|
13
|
+
知识(`maintain-wiki`、`dump-ddl`、`maintain-defectlib`)、动作(`maintain-testcases`、`maintain-testsheet`、`execute-testsheet`、
|
|
14
|
+
`generate-test-report`、`maintain-bdd-assets`、`maintain-pytest`)、可用性(`health-check`、`upgrade-framework`、`maintain-config`、`create-app`)。
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 标准作业流程
|
|
19
|
+
|
|
20
|
+
### 1. 工具域:只装核心 kit(能 `tuner-init` 即可)
|
|
21
|
+
|
|
22
|
+
`uv tool install` 和业务仓 `.venv` 是两套环境。下游在 **tool 域只装默认 wheel**,用来拿 `tuner-init` / `tuner-dna`;**不要**在 tool 域打开 `[db]` / `[api]` 等 extra。
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
uv tool install tuner-testkit
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
入口命令是 `tuner-init`、`tuner-dna` 等(`tuner-*`),**没有** `tuner-testkit` 这个 script。`tuner-dump-ddl`、`tuner-recorder` 等依赖 extra 的 CLI,请在业务仓用 `uv run …` 跑,走该仓 `.venv`。
|
|
29
|
+
|
|
30
|
+
### 2. 初始化测试仓
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
tuner-init scaffold ../acme
|
|
34
|
+
cd ../acme
|
|
35
|
+
uv sync
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`scaffold` 会铺分层目录(`knowledge/`、`assets/`、`packages/`、`apps/`、`data/`、`tests/`、`config/`、`work/tasks/`、`artifacts/`)、写入依赖 `tuner-testkit[db,api]>=<当前 kit 版本>` 的 `pyproject.toml`,并执行一次 `tuner-dna sync`(把 `.cursor/`、`docs/spec/`、`tools/git-hooks/`、`AGENTS.md` 放进**项目树**;平台专属内容不下发)。可在任意目录运行,不必先有测试仓。不要用 `tuner-testkit init repo`。
|
|
39
|
+
|
|
40
|
+
scaffold 之后让 AI 跑 `health-check`(底层是 `tuner-workspace doctor`),它会列出还缺的配置、账号、表结构、浏览器通道、日志端口等,并逐项补齐。
|
|
41
|
+
|
|
42
|
+
生成的文件夹名就是 `target` 路径的最后一段。`pyproject.toml` 里的项目名默认取这个文件夹名(`Acme` 会写成 `acme`)。需要另起项目名时加 `--name`:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
tuner-init scaffold ../clients/acme --name acme-billing
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`uv sync` 把 **db / api 装进业务仓 `.venv`**,不是 tool 域。已有项目仓则在该仓根目录:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
uv add "tuner-testkit[db,api]>=4.0.0"
|
|
52
|
+
uv sync
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Web UI / 合录等按需再加 extra:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
uv add "tuner-testkit[web-ui]"
|
|
59
|
+
uv add "tuner-testkit[recorder]"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
测 kit 全能力(平台狗食仓等)一次打开全部能力 extra:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
uv add "tuner-testkit[all]"
|
|
66
|
+
uv sync
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### 3. 开始写业务
|
|
70
|
+
|
|
71
|
+
在**项目仓**里写,不要改 site-packages 里的 kit:
|
|
72
|
+
|
|
73
|
+
| 你写什么 | 放哪里 |
|
|
74
|
+
| --- | --- |
|
|
75
|
+
| 被测系统知识(DDL、需求、业务讲解、探索、design、缺陷) | `knowledge/`(`ddl/`、`raw/`、`wiki/`、`requirements/`、`defects/`) |
|
|
76
|
+
| 测试设计、功能用例、测试单、报告 | `assets/`(`testdesign/`、`testcases/`、`testsheet/`、`testreport/`) |
|
|
77
|
+
| 页面 / 接口资产 | `packages/page_objects/`、`packages/api_objects/`(有 OpenAPI 时 `tuner-openapi-import`) |
|
|
78
|
+
| 业务动作 | `packages/action_words/` |
|
|
79
|
+
| BDD / pytest | `tests/features/`、`tests/pytest/` |
|
|
80
|
+
| 本仓私有工具、端口适配器(如后端日志) | `apps/`(`python -m apps.<name>`) |
|
|
81
|
+
| 测试数据、账号(角色、权限) | `data/` |
|
|
82
|
+
| 「在哪、用什么」:环境、运维通道、端口绑定、浏览器通道、知识位置 | `config/`(`tuner-config show --json` / `validate`) |
|
|
83
|
+
|
|
84
|
+
代码里 `from tuner_testkit.db import …` / `from tuner_testkit.page_test import …`。密钥只放本机 `config/env_local.py` 或环境变量(`TUNER_ENV`、`TUNER_DB_<ALIAS>_*`),**不要提交**。
|
|
85
|
+
|
|
86
|
+
后端日志这类取数方式各团队不同的能力,kit 只定**端口契约**(`docs/spec/ports.md`),实现是本仓 `apps/` 里的自定义工具。
|
|
87
|
+
缺陷和用例一样有固定目录与模板:`knowledge/defects/<DEF-ID>.md`(`docs/spec/defect-syntax.md`,skill `maintain-defectlib`)。
|
|
88
|
+
维护过的库(用例、需求、缺陷、wiki、接口与页面资产)各有一份入库的 `CHANGELOG.md`,`pre-commit` 会检查。
|
|
89
|
+
|
|
90
|
+
录制产物同样写到项目仓 `packages/`,不会写进 venv。
|
|
91
|
+
|
|
92
|
+
### 4. 获取 PyPI 上的更新
|
|
93
|
+
|
|
94
|
+
平台发新版本后,下游从 [PyPI:tuner-testkit](https://pypi.org/project/tuner-testkit/) 取 wheel,**不要**再拷本仓源码。tool 域和业务仓 `.venv` 是两份安装,**两边都要升**,再铺 DNA。
|
|
95
|
+
|
|
96
|
+
**先看当前装的是哪一版、PyPI 最新是哪一版:**
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
uv tool list # tool 域里的 tuner-testkit
|
|
100
|
+
cd ../my-sut-tests
|
|
101
|
+
uv pip show tuner-testkit # 业务仓 .venv
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
发行说明见 [`docs/changelog/FRAMEWORK.md`](docs/changelog/FRAMEWORK.md) 与该版本的 `docs/changelog/TEMPLATE-*.md`。
|
|
105
|
+
|
|
106
|
+
**① tool 域(只升核心 CLI)**
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
uv tool upgrade tuner-testkit
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
升的是 `tuner-init` / `tuner-dna` 所在环境。这里仍然**不要**加 `[db]` / `[api]`。尚未 `uv tool install` 过则先执行第 1 节。
|
|
113
|
+
|
|
114
|
+
**② 业务仓 `.venv`(升运行库 + extras)**
|
|
115
|
+
|
|
116
|
+
在**项目仓根目录**改依赖并同步 lock。保留你原来打开的 extra(普通仓 `[db,api]`,狗食/全能力仓 `[all]`):
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# 钉到某一发行版(推荐,和团队 lock 一致)
|
|
120
|
+
uv add "tuner-testkit[db,api]==4.3.0"
|
|
121
|
+
|
|
122
|
+
# 或只抬下限,让解析器选允许范围内的最新
|
|
123
|
+
# uv add "tuner-testkit[db,api]>=4.3.0"
|
|
124
|
+
|
|
125
|
+
uv sync
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
已经写过 `>=4.0.0`、只想把 lock 里的 kit 升到 PyPI 最新:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
uv lock --upgrade-package tuner-testkit
|
|
132
|
+
uv sync
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
只改 `pyproject.toml` 里的版本再 `uv lock` / `uv sync` 也可以。一个 wheel 不能「只升 web-ui、钉死旧 db」。
|
|
136
|
+
|
|
137
|
+
**③ 同步 DNA、按说明迁移、提交**
|
|
138
|
+
|
|
139
|
+
`uv add` / `uv sync` 只更新 site-packages 里的运行库。Cursor 读的是项目树里的 `.cursor/`、`docs/spec/`、`docs/changelog/TEMPLATE-*.md`、`tools/git-hooks/`、`AGENTS.md`,必须再铺一层:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
tuner-dna sync --prune # 没被本地改过的文件自动更新;上游删掉的文件一并删除
|
|
143
|
+
tuner-dna check # 本地改过的文件会列为 edited
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
`tuner-dna sync` 在项目根写 `.tuner-dna.json`(每个文件的哈希,入库),据此区分「没动过、可以直接更新」和「本地改过」。
|
|
147
|
+
本地改过的 DNA 文件默认保留;把定制移到 `.cursor/rules/<名字>.local.mdc` 或 `AGENTS.local.md`(sync 永不触碰)后再加 `--overwrite`。
|
|
148
|
+
然后读 `docs/changelog/TEMPLATE-<版本>.md` 做布局或配置迁移(例如 7.0.0 的 `tuner-workspace migrate knowledge`),最后一次提交。
|
|
149
|
+
这一整套可以交给 skill **`upgrade-framework`**。
|
|
150
|
+
|
|
151
|
+
`tuner-dna check` 核对项目树 DNA 是否与**当前 PATH 上那份** kit 一致。建议先 `uv tool upgrade`,再 `sync`,避免 CLI 还是旧包、`.venv` 已是新包。
|
|
152
|
+
|
|
153
|
+
**其他 AI IDE**:DNA 以 Cursor 布局为源,`tuner-dna sync --ide claude,agents`(或 `all`)把 skills 渲染到
|
|
154
|
+
`.claude/skills/` / `.agents/skills/`、subagents 到 `.claude/agents/`,并生成 `CLAUDE.md`(`@AGENTS.md` + always-on 规则内联 + 路径规则清单)。
|
|
155
|
+
`tuner-dna targets` 列出各目标落点;hooks.json 不跨工具翻译。目录约定随各工具文档变动,用前核对。
|
|
156
|
+
|
|
157
|
+
新仓第一次仍用第 2 节的 `tuner-init scaffold`(会写依赖并做一次 `tuner-dna sync`),不是每次发版都重新 scaffold。
|
|
158
|
+
|
|
159
|
+
`[phone-ui]` 为预留空 extra,4.0 未实现。
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## extras
|
|
164
|
+
|
|
165
|
+
| extra | 内容 |
|
|
166
|
+
| --- | --- |
|
|
167
|
+
| (默认 wheel) | `config` / `logging`、`tuner-init`、`tuner-dna`(tool 域只装这个) |
|
|
168
|
+
| `[db]` | MySQL / SQL Server / PostgreSQL(装在业务仓 `.venv`) |
|
|
169
|
+
| `[api]` | `api_test`(HTTP 客户端) |
|
|
170
|
+
| `[web-ui]` | `page_test` + Playwright |
|
|
171
|
+
| `[phone-ui]` | 预留,无实现 |
|
|
172
|
+
| `[recorder]` | 合录 / 仅 UI / mitmproxy 代理 |
|
|
173
|
+
| `[mock]` | 按冻结的 api_objects 回放 |
|
|
174
|
+
| `[excel]` / `[fake]` | 表格 / 假数据 |
|
|
175
|
+
| `[report]` | `tuner-testreport render`:测试单报告出 docx(docxtpl) |
|
|
176
|
+
| `[bdd]` / `[test]` | behave / pytest |
|
|
177
|
+
| `[all]` | 元 extra:上述能力 extra 的并集(不含 `[dev]`) |
|
|
178
|
+
| `[dev]` | `tuner-testkit[all]`,给本仓 editable 开发 |
|
|
179
|
+
|
|
180
|
+
CLI 与 `python -m tuner_testkit.…` 等价,例如 `tuner-recorder`、`tuner-page-recorder`、`tuner-api-recorder`、`tuner-mock-server`。依赖 extra 的命令在业务仓用 `uv run tuner-dump-ddl` / `uv run tuner-recorder`。
|
|
181
|
+
|
|
182
|
+
TestPilot 的确定性入口(默认 wheel 即可):
|
|
183
|
+
|
|
184
|
+
| 命令 | 作用 |
|
|
185
|
+
| --- | --- |
|
|
186
|
+
| `tuner-workspace doctor` | 体检:还缺哪些配置、账号、表结构、通道、端口绑定,DNA 是否漂移 |
|
|
187
|
+
| `tuner-config show --json` / `validate` | 读配置(密钥打码)/ 校验配置 |
|
|
188
|
+
| `tuner-workspace changelog append` / `check` | 维护库的 changelog;提交前校验 |
|
|
189
|
+
| `tuner-workspace migrate knowledge` | 旧布局迁到 `knowledge/` |
|
|
190
|
+
| `tuner-openapi-import <spec>` | 从 OpenAPI / Swagger 冻结 api_objects |
|
|
191
|
+
| `tuner-dna sync --prune` / `check --json` | 升级 DNA,保留本地改动 |
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## 安全
|
|
196
|
+
|
|
197
|
+
不得把 token、cookie、Authorization、密码、session 写入仓库(含 capture 与 api_objects)。凭证只允许运行时注入。
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## 本仓库(平台源码)
|
|
202
|
+
|
|
203
|
+
克隆后在仓库根目录开发 kit 本身:
|
|
204
|
+
|
|
205
|
+
```powershell
|
|
206
|
+
uv venv
|
|
207
|
+
uv sync --extra all
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
`uv sync --extra dev` 与 `--extra all` 等价(`dev` 只是引用 `[all]`)。
|
|
211
|
+
|
|
212
|
+
Lint 与 CI 用同一个 ruff 版本,规则写在 `pyproject.toml` 的 `[tool.ruff.lint]`(E4 / E7 / E9 / F / B / BLE:语法与导入、pyflakes、bugbear、宽泛 except):
|
|
213
|
+
|
|
214
|
+
```powershell
|
|
215
|
+
uvx ruff@0.17.3 check .
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
宽泛的 `except Exception` 要写理由:`# noqa: BLE001 -- <为什么>`。
|
|
219
|
+
|
|
220
|
+
本仓是**平台仓**,不是 workspace。`dogfood/` 是用 `tuner-init scaffold dogfood --no-ai` 生成的 workspace 示范
|
|
221
|
+
(被测系统 = 平台本身,uv workspace 成员,共用 `.venv`):路线图在 `dogfood/knowledge/wiki/domain-notes/platform/roadmap.md`,
|
|
222
|
+
验收活文档在 `dogfood/tests/features/`。见 [`dogfood/README.md`](dogfood/README.md)。
|
|
223
|
+
|
|
224
|
+
7.0.1 发行说明(DNA 比对不受换行符影响)见 [`docs/changelog/TEMPLATE-7.0.1.md`](docs/changelog/TEMPLATE-7.0.1.md);7.0.0 发行说明(TestPilot:`knowledge/` 知识层、配置扩展、端口与自定义 apps、体检 / 升级 / 配置 skill)见 [`docs/changelog/TEMPLATE-7.0.0.md`](docs/changelog/TEMPLATE-7.0.0.md);6.3.0 发行说明(测试单出 GJB438B 报告)见 [`docs/changelog/TEMPLATE-6.3.0.md`](docs/changelog/TEMPLATE-6.3.0.md);6.2.0 发行说明(测试单)见 [`docs/changelog/TEMPLATE-6.2.0.md`](docs/changelog/TEMPLATE-6.2.0.md);6.1.0 发行说明(scaffold 项目名)见 [`docs/changelog/TEMPLATE-6.1.0.md`](docs/changelog/TEMPLATE-6.1.0.md);6.0.0 发行说明(一条用例一个文件)见 [`docs/changelog/TEMPLATE-6.0.0.md`](docs/changelog/TEMPLATE-6.0.0.md);5.3.1 发行说明(已回答提问归档)见 [`docs/changelog/TEMPLATE-5.3.1.md`](docs/changelog/TEMPLATE-5.3.1.md);5.3.0 发行说明(功能用例集 `assets/testcases/`)见 [`docs/changelog/TEMPLATE-5.3.0.md`](docs/changelog/TEMPLATE-5.3.0.md);5.2.0 发行说明(work task / 测试设计 / 证据附件)见 [`docs/changelog/TEMPLATE-5.2.0.md`](docs/changelog/TEMPLATE-5.2.0.md);5.1.0 发行说明(工作台 / meta stamp / `--json`)见 [`docs/changelog/TEMPLATE-5.1.0.md`](docs/changelog/TEMPLATE-5.1.0.md);5.0.0(Plane Job 协议退场、`tuner-workspace`)见 [`TEMPLATE-5.0.0.md`](docs/changelog/TEMPLATE-5.0.0.md);4.3.0 见 [`TEMPLATE-4.3.0.md`](docs/changelog/TEMPLATE-4.3.0.md);3.x → 4.x 迁移见 [`TEMPLATE-4.0.0.md`](docs/changelog/TEMPLATE-4.0.0.md)。平台能力地图见 [`INDEX.md`](INDEX.md)。
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "tuner-testkit"
|
|
3
|
-
version = "
|
|
4
|
-
description = "
|
|
3
|
+
version = "7.0.1"
|
|
4
|
+
description = "TestPilot: shared test runtime, recorders, and DNA overlay for SUT test workspaces"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
7
7
|
license-files = ["LICENSE"]
|
|
@@ -83,6 +83,7 @@ tuner-action-words = "tuner_testkit.action_words.__main__:main"
|
|
|
83
83
|
tuner-evidence = "tuner_testkit.apps.evidence.cli:main"
|
|
84
84
|
tuner-task = "tuner_testkit.apps.task.cli:main"
|
|
85
85
|
tuner-testreport = "tuner_testkit.apps.testreport.cli:main"
|
|
86
|
+
tuner-openapi-import = "tuner_testkit.apps.openapi_import.cli:main"
|
|
86
87
|
tuner-workbench = "tuner_testkit.workbench.cli:main"
|
|
87
88
|
|
|
88
89
|
[build-system]
|
|
@@ -111,6 +112,18 @@ page_objects = "packages/page_objects"
|
|
|
111
112
|
api_objects = "packages/api_objects"
|
|
112
113
|
mocks = "data/mocks"
|
|
113
114
|
|
|
115
|
+
[tool.ruff]
|
|
116
|
+
# CI runs the same release: `uvx ruff@0.17.3 check .`
|
|
117
|
+
required-version = ">=0.17.3,<0.18"
|
|
118
|
+
target-version = "py312"
|
|
119
|
+
extend-exclude = ["tuner_testkit/apps/dna/dna_payload", "build", "dist"]
|
|
120
|
+
|
|
121
|
+
[tool.ruff.lint]
|
|
122
|
+
# Correctness, not style: syntax / import placement / statement errors (E4, E7, E9),
|
|
123
|
+
# pyflakes (F), bugbear (B), and blind except (BLE). A broad `except Exception`
|
|
124
|
+
# must say why: `# noqa: BLE001 -- <reason>`.
|
|
125
|
+
select = ["E4", "E7", "E9", "F", "B", "BLE"]
|
|
126
|
+
|
|
114
127
|
[tool.pytest.ini_options]
|
|
115
128
|
pythonpath = ["."]
|
|
116
129
|
testpaths = ["packages/tests", "tuner_testkit"]
|
|
@@ -48,7 +48,7 @@ class PathPattern:
|
|
|
48
48
|
return False
|
|
49
49
|
return all(
|
|
50
50
|
_segment_matches(pattern_seg, actual_seg)
|
|
51
|
-
for pattern_seg, actual_seg in zip(self._segments, actual_segments)
|
|
51
|
+
for pattern_seg, actual_seg in zip(self._segments, actual_segments, strict=True)
|
|
52
52
|
)
|
|
53
53
|
|
|
54
54
|
def __repr__(self) -> str: # pragma: no cover - debugging aid
|
|
@@ -7,7 +7,7 @@ import re
|
|
|
7
7
|
from dataclasses import dataclass, field
|
|
8
8
|
from email import message_from_bytes
|
|
9
9
|
from email.policy import HTTP
|
|
10
|
-
from typing import Any, Mapping
|
|
10
|
+
from typing import Any, Mapping
|
|
11
11
|
from urllib.parse import parse_qsl
|
|
12
12
|
|
|
13
13
|
from .normalize import DEFAULT_TOOL, body_keys, fingerprint, normalize_path, schema_from_mapping, split_url
|
|
@@ -71,7 +71,7 @@ def _parse_multipart(
|
|
|
71
71
|
)
|
|
72
72
|
try:
|
|
73
73
|
msg = message_from_bytes(envelope, policy=HTTP)
|
|
74
|
-
except Exception:
|
|
74
|
+
except Exception: # noqa: BLE001 -- a malformed multipart body is frozen without fields, never breaks capture
|
|
75
75
|
return {}, {}, "none"
|
|
76
76
|
|
|
77
77
|
text_fields: dict[str, Any] = {}
|
|
@@ -89,7 +89,7 @@ def _literal(node: ast.AST) -> Any:
|
|
|
89
89
|
return tuple(_literal(e) for e in node.elts)
|
|
90
90
|
if isinstance(node, ast.Dict):
|
|
91
91
|
out: dict[str, Any] = {}
|
|
92
|
-
for k, v in zip(node.keys, node.values):
|
|
92
|
+
for k, v in zip(node.keys, node.values, strict=True):
|
|
93
93
|
if k is None:
|
|
94
94
|
continue
|
|
95
95
|
out[str(_literal(k))] = _literal(v)
|
{tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/normalize.py
RENAMED
|
@@ -42,41 +42,6 @@ STATIC_EXTENSIONS = frozenset(
|
|
|
42
42
|
SKIP_METHODS = frozenset({"OPTIONS", "HEAD", "CONNECT"})
|
|
43
43
|
DEFAULT_TOOL = "recorder"
|
|
44
44
|
|
|
45
|
-
DEFAULT_TOOL = "recorder"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def skip_api_flow(
|
|
49
|
-
*,
|
|
50
|
-
method: str,
|
|
51
|
-
url: str,
|
|
52
|
-
request_content_type: str = "",
|
|
53
|
-
response_content_type: str = "",
|
|
54
|
-
include_host: str | None = None,
|
|
55
|
-
) -> str | None:
|
|
56
|
-
"""Return why this flow should not be frozen, or ``None`` to freeze it.
|
|
57
|
-
|
|
58
|
-
Reasons: ``method`` / ``host`` / ``static``. ``static`` also covers HTML
|
|
59
|
-
document GETs (SPA shells).
|
|
60
|
-
"""
|
|
61
|
-
method_u = (method or "").upper()
|
|
62
|
-
if method_u in SKIP_METHODS:
|
|
63
|
-
return "method"
|
|
64
|
-
parts = urlsplit(url or "")
|
|
65
|
-
host = (parts.netloc or "").lower()
|
|
66
|
-
path = parts.path or "/"
|
|
67
|
-
needle = (include_host or "").strip().lower()
|
|
68
|
-
if needle and needle not in host:
|
|
69
|
-
return "host"
|
|
70
|
-
if is_static_request(
|
|
71
|
-
path=path,
|
|
72
|
-
content_type=request_content_type,
|
|
73
|
-
response_content_type=response_content_type,
|
|
74
|
-
):
|
|
75
|
-
return "static"
|
|
76
|
-
if "text/html" in (response_content_type or "").lower() and method_u == "GET":
|
|
77
|
-
return "static"
|
|
78
|
-
return None
|
|
79
|
-
|
|
80
45
|
|
|
81
46
|
def split_url(url: str) -> tuple[str, str, dict[str, str]]:
|
|
82
47
|
"""Return ``(host, path, query_dict)`` from a full URL."""
|
|
@@ -161,7 +161,6 @@ class ApiClient:
|
|
|
161
161
|
url = f"{self.base_url.rstrip('/')}{model.path}"
|
|
162
162
|
|
|
163
163
|
hp = model.headers_policy or {}
|
|
164
|
-
allowlist = [str(x) for x in hp.get("allowlist", [])]
|
|
165
164
|
forbidden = [str(x) for x in hp.get("forbidden", [])]
|
|
166
165
|
|
|
167
166
|
# model.Invocation already enforces allowlist. Here we do a final forbidden/sensitive check.
|
|
@@ -254,11 +253,11 @@ class ApiClient:
|
|
|
254
253
|
raw_content = bytes(raw_content_attr) if raw_content_attr else b""
|
|
255
254
|
try:
|
|
256
255
|
text = r.text or ""
|
|
257
|
-
except
|
|
256
|
+
except (UnicodeDecodeError, LookupError):
|
|
258
257
|
text = ""
|
|
259
258
|
try:
|
|
260
259
|
parsed = r.json()
|
|
261
|
-
except
|
|
260
|
+
except ValueError: # JSONDecodeError (json / requests) is a ValueError
|
|
262
261
|
parsed = None
|
|
263
262
|
|
|
264
263
|
ok = 200 <= int(r.status_code) < 300
|
|
@@ -4,7 +4,7 @@ import re
|
|
|
4
4
|
from dataclasses import dataclass, field, replace
|
|
5
5
|
from typing import Any, Dict, Iterable, List, Mapping, MutableMapping, Optional
|
|
6
6
|
|
|
7
|
-
from .errors import ApiAssertError,
|
|
7
|
+
from .errors import ApiAssertError, FilesPolicyError, HeadersPolicyError, SchemaValidationError
|
|
8
8
|
from .jsonpath import exists as jsonpath_exists
|
|
9
9
|
from .jsonpath import get as jsonpath_get
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ Typical use from a tool::
|
|
|
18
18
|
from tuner_testkit.apps._shared.changelog import append_entry
|
|
19
19
|
|
|
20
20
|
append_entry(
|
|
21
|
-
REPO_ROOT / "
|
|
21
|
+
REPO_ROOT / "knowledge" / "ddl" / "CHANGELOG.md",
|
|
22
22
|
tool="dump_ddl",
|
|
23
23
|
action="dump-ddl",
|
|
24
24
|
items=["invoice", "sys_user"],
|
|
@@ -42,34 +42,53 @@ _HEADER = (
|
|
|
42
42
|
)
|
|
43
43
|
|
|
44
44
|
|
|
45
|
+
MAINTAINED_HEADER = (
|
|
46
|
+
"# CHANGELOG — maintained object library\n"
|
|
47
|
+
"\n"
|
|
48
|
+
"> Append-only, one line per maintenance session (skill or tool), written by\n"
|
|
49
|
+
"> `tuner-workspace changelog append`. Committed with the change it describes.\n"
|
|
50
|
+
"> Format: `- <iso-ts> | <skill> | <action> | items=a,b | version=x->y | reason=… | author=…`\n"
|
|
51
|
+
"\n"
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _clean(value: Any) -> str:
|
|
56
|
+
"""Keep one line greppable: no pipes or newlines inside a field."""
|
|
57
|
+
return " ".join(str(value).replace("|", "/").split())
|
|
58
|
+
|
|
59
|
+
|
|
45
60
|
def append_entry(
|
|
46
61
|
changelog_path: str | pathlib.Path,
|
|
47
62
|
*,
|
|
48
63
|
tool: str,
|
|
49
64
|
action: str,
|
|
50
65
|
items: Iterable[Any] | None = None,
|
|
66
|
+
header: str | None = None,
|
|
51
67
|
**fields: Any,
|
|
52
68
|
) -> str:
|
|
53
69
|
"""Append one changelog line and return it.
|
|
54
70
|
|
|
55
71
|
- ``changelog_path``: path to the area's ``CHANGELOG.md`` (created if absent).
|
|
56
|
-
- ``tool``: the generator name (e.g. ``"dump_ddl"``).
|
|
57
|
-
- ``action``: short verb for what happened (e.g. ``"dump-ddl"``).
|
|
58
|
-
- ``items``: the concrete artifacts touched (tables, routes, ...).
|
|
59
|
-
- ``
|
|
72
|
+
- ``tool``: the generator or skill name (e.g. ``"dump_ddl"``, ``"maintain-testcases"``).
|
|
73
|
+
- ``action``: short verb for what happened (e.g. ``"dump-ddl"``, ``"update"``).
|
|
74
|
+
- ``items``: the concrete artifacts touched (tables, routes, case IDs, ...).
|
|
75
|
+
- ``header``: header written when the file is created (default: auto-area header).
|
|
76
|
+
- ``fields``: extra key=value context (datasource, count, version, reason, ...).
|
|
60
77
|
"""
|
|
61
78
|
path = pathlib.Path(changelog_path)
|
|
62
79
|
path.parent.mkdir(parents=True, exist_ok=True)
|
|
63
80
|
if not path.exists():
|
|
64
|
-
path.write_text(_HEADER, encoding="utf-8", newline="\n")
|
|
81
|
+
path.write_text(header or _HEADER, encoding="utf-8", newline="\n")
|
|
65
82
|
|
|
66
83
|
ts = _dt.datetime.now().astimezone().strftime("%Y-%m-%dT%H:%M:%S%z")
|
|
67
|
-
parts = [ts, tool, action]
|
|
84
|
+
parts = [ts, _clean(tool), _clean(action)]
|
|
68
85
|
if items is not None:
|
|
69
|
-
item_list = [
|
|
86
|
+
item_list = [_clean(i) for i in items]
|
|
70
87
|
parts.append("items=" + ",".join(item_list) if item_list else "items=")
|
|
71
88
|
for key, value in fields.items():
|
|
72
|
-
|
|
89
|
+
if value is None or value == "":
|
|
90
|
+
continue
|
|
91
|
+
parts.append(f"{key}={_clean(value)}")
|
|
73
92
|
|
|
74
93
|
line = "- " + " | ".join(parts) + "\n"
|
|
75
94
|
with path.open("a", encoding="utf-8", newline="\n") as handle:
|