@inluxc/propmaster 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +696 -2
- package/dist/src/annotations/index.d.ts +11 -0
- package/dist/src/annotations/index.d.ts.map +1 -0
- package/dist/src/annotations/index.js +11 -0
- package/dist/src/annotations/index.js.map +1 -0
- package/dist/src/annotations/recorder.d.ts +57 -0
- package/dist/src/annotations/recorder.d.ts.map +1 -0
- package/dist/src/annotations/recorder.js +100 -0
- package/dist/src/annotations/recorder.js.map +1 -0
- package/dist/src/annotations/truncation.d.ts +34 -0
- package/dist/src/annotations/truncation.d.ts.map +1 -0
- package/dist/src/annotations/truncation.js +54 -0
- package/dist/src/annotations/truncation.js.map +1 -0
- package/dist/src/auth/apply.d.ts +15 -0
- package/dist/src/auth/apply.d.ts.map +1 -0
- package/dist/src/auth/apply.js +21 -0
- package/dist/src/auth/apply.js.map +1 -0
- package/dist/src/auth/setup.d.ts +56 -0
- package/dist/src/auth/setup.d.ts.map +1 -0
- package/dist/src/auth/setup.js +79 -0
- package/dist/src/auth/setup.js.map +1 -0
- package/dist/src/auth/state-file.d.ts +8 -0
- package/dist/src/auth/state-file.d.ts.map +1 -0
- package/dist/src/auth/state-file.js +13 -0
- package/dist/src/auth/state-file.js.map +1 -0
- package/dist/src/auth/token-manager.d.ts +61 -0
- package/dist/src/auth/token-manager.d.ts.map +1 -0
- package/dist/src/auth/token-manager.js +200 -0
- package/dist/src/auth/token-manager.js.map +1 -0
- package/dist/src/cli/banner.d.ts +23 -0
- package/dist/src/cli/banner.d.ts.map +1 -0
- package/dist/src/cli/banner.js +67 -0
- package/dist/src/cli/banner.js.map +1 -0
- package/dist/src/cli/check-tests.d.ts +143 -0
- package/dist/src/cli/check-tests.d.ts.map +1 -0
- package/dist/src/cli/check-tests.js +541 -0
- package/dist/src/cli/check-tests.js.map +1 -0
- package/dist/src/cli/coverage.d.ts +14 -0
- package/dist/src/cli/coverage.d.ts.map +1 -0
- package/dist/src/cli/coverage.js +97 -0
- package/dist/src/cli/coverage.js.map +1 -0
- package/dist/src/cli/doctor.d.ts +82 -0
- package/dist/src/cli/doctor.d.ts.map +1 -0
- package/dist/src/cli/doctor.js +656 -0
- package/dist/src/cli/doctor.js.map +1 -0
- package/dist/src/cli/env.d.ts +76 -0
- package/dist/src/cli/env.d.ts.map +1 -0
- package/dist/src/cli/env.js +344 -0
- package/dist/src/cli/env.js.map +1 -0
- package/dist/src/cli/failures.d.ts +29 -0
- package/dist/src/cli/failures.d.ts.map +1 -0
- package/dist/src/cli/failures.js +114 -0
- package/dist/src/cli/failures.js.map +1 -0
- package/dist/src/cli/fixture-catalog.d.ts +83 -0
- package/dist/src/cli/fixture-catalog.d.ts.map +1 -0
- package/dist/src/cli/fixture-catalog.js +773 -0
- package/dist/src/cli/fixture-catalog.js.map +1 -0
- package/dist/src/cli/fixture.d.ts +149 -0
- package/dist/src/cli/fixture.d.ts.map +1 -0
- package/dist/src/cli/fixture.js +742 -0
- package/dist/src/cli/fixture.js.map +1 -0
- package/dist/src/cli/flaky.d.ts +25 -0
- package/dist/src/cli/flaky.d.ts.map +1 -0
- package/dist/src/cli/flaky.js +96 -0
- package/dist/src/cli/flaky.js.map +1 -0
- package/dist/src/cli/generate.d.ts +37 -0
- package/dist/src/cli/generate.d.ts.map +1 -0
- package/dist/src/cli/generate.js +230 -0
- package/dist/src/cli/generate.js.map +1 -0
- package/dist/src/cli/init.d.ts +36 -0
- package/dist/src/cli/init.d.ts.map +1 -0
- package/dist/src/cli/init.js +1039 -0
- package/dist/src/cli/init.js.map +1 -0
- package/dist/src/cli/json-edit.d.ts +58 -0
- package/dist/src/cli/json-edit.d.ts.map +1 -0
- package/dist/src/cli/json-edit.js +250 -0
- package/dist/src/cli/json-edit.js.map +1 -0
- package/dist/src/cli/layout.d.ts +31 -0
- package/dist/src/cli/layout.d.ts.map +1 -0
- package/dist/src/cli/layout.js +175 -0
- package/dist/src/cli/layout.js.map +1 -0
- package/dist/src/cli/mcp-setup.d.ts +141 -0
- package/dist/src/cli/mcp-setup.d.ts.map +1 -0
- package/dist/src/cli/mcp-setup.js +548 -0
- package/dist/src/cli/mcp-setup.js.map +1 -0
- package/dist/src/cli/organize.d.ts +136 -0
- package/dist/src/cli/organize.d.ts.map +1 -0
- package/dist/src/cli/organize.js +467 -0
- package/dist/src/cli/organize.js.map +1 -0
- package/dist/src/cli/prompts.d.ts +102 -0
- package/dist/src/cli/prompts.d.ts.map +1 -0
- package/dist/src/cli/prompts.js +346 -0
- package/dist/src/cli/prompts.js.map +1 -0
- package/dist/src/cli/standards.d.ts +160 -0
- package/dist/src/cli/standards.d.ts.map +1 -0
- package/dist/src/cli/standards.js +389 -0
- package/dist/src/cli/standards.js.map +1 -0
- package/dist/src/cli/style.d.ts +28 -0
- package/dist/src/cli/style.d.ts.map +1 -0
- package/dist/src/cli/style.js +57 -0
- package/dist/src/cli/style.js.map +1 -0
- package/dist/src/config/env-loader.d.ts +33 -0
- package/dist/src/config/env-loader.d.ts.map +1 -0
- package/dist/src/config/env-loader.js +72 -0
- package/dist/src/config/env-loader.js.map +1 -0
- package/dist/src/config/index.d.ts +10 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +10 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/loader.d.ts +66 -0
- package/dist/src/config/loader.d.ts.map +1 -0
- package/dist/src/config/loader.js +810 -0
- package/dist/src/config/loader.js.map +1 -0
- package/dist/src/config/schema.d.ts +596 -0
- package/dist/src/config/schema.d.ts.map +1 -0
- package/dist/src/config/schema.js +9 -0
- package/dist/src/config/schema.js.map +1 -0
- package/dist/src/containers/container-manager.d.ts +157 -0
- package/dist/src/containers/container-manager.d.ts.map +1 -0
- package/dist/src/containers/container-manager.js +627 -0
- package/dist/src/containers/container-manager.js.map +1 -0
- package/dist/src/coverage/code-coverage.d.ts +89 -0
- package/dist/src/coverage/code-coverage.d.ts.map +1 -0
- package/dist/src/coverage/code-coverage.js +395 -0
- package/dist/src/coverage/code-coverage.js.map +1 -0
- package/dist/src/coverage/inventory.d.ts +80 -0
- package/dist/src/coverage/inventory.d.ts.map +1 -0
- package/dist/src/coverage/inventory.js +417 -0
- package/dist/src/coverage/inventory.js.map +1 -0
- package/dist/src/coverage/languages.d.ts +34 -0
- package/dist/src/coverage/languages.d.ts.map +1 -0
- package/dist/src/coverage/languages.js +156 -0
- package/dist/src/coverage/languages.js.map +1 -0
- package/dist/src/coverage/report.d.ts +128 -0
- package/dist/src/coverage/report.d.ts.map +1 -0
- package/dist/src/coverage/report.js +472 -0
- package/dist/src/coverage/report.js.map +1 -0
- package/dist/src/errors.d.ts +164 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +267 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/fixtures/amqp.fixture.d.ts +163 -0
- package/dist/src/fixtures/amqp.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/amqp.fixture.js +494 -0
- package/dist/src/fixtures/amqp.fixture.js.map +1 -0
- package/dist/src/fixtures/appium.fixture.d.ts +112 -0
- package/dist/src/fixtures/appium.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/appium.fixture.js +309 -0
- package/dist/src/fixtures/appium.fixture.js.map +1 -0
- package/dist/src/fixtures/aws.d.ts +44 -0
- package/dist/src/fixtures/aws.d.ts.map +1 -0
- package/dist/src/fixtures/aws.js +93 -0
- package/dist/src/fixtures/aws.js.map +1 -0
- package/dist/src/fixtures/cassandra.fixture.d.ts +179 -0
- package/dist/src/fixtures/cassandra.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/cassandra.fixture.js +489 -0
- package/dist/src/fixtures/cassandra.fixture.js.map +1 -0
- package/dist/src/fixtures/clickhouse.fixture.d.ts +171 -0
- package/dist/src/fixtures/clickhouse.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/clickhouse.fixture.js +514 -0
- package/dist/src/fixtures/clickhouse.fixture.js.map +1 -0
- package/dist/src/fixtures/database.fixture.d.ts +63 -0
- package/dist/src/fixtures/database.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/database.fixture.js +407 -0
- package/dist/src/fixtures/database.fixture.js.map +1 -0
- package/dist/src/fixtures/dynamodb.fixture.d.ts +243 -0
- package/dist/src/fixtures/dynamodb.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/dynamodb.fixture.js +580 -0
- package/dist/src/fixtures/dynamodb.fixture.js.map +1 -0
- package/dist/src/fixtures/graphql.fixture.d.ts +107 -0
- package/dist/src/fixtures/graphql.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/graphql.fixture.js +158 -0
- package/dist/src/fixtures/graphql.fixture.js.map +1 -0
- package/dist/src/fixtures/grpc.fixture.d.ts +167 -0
- package/dist/src/fixtures/grpc.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/grpc.fixture.js +635 -0
- package/dist/src/fixtures/grpc.fixture.js.map +1 -0
- package/dist/src/fixtures/inbox.fixture.d.ts +136 -0
- package/dist/src/fixtures/inbox.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/inbox.fixture.js +239 -0
- package/dist/src/fixtures/inbox.fixture.js.map +1 -0
- package/dist/src/fixtures/index.d.ts +174 -0
- package/dist/src/fixtures/index.d.ts.map +1 -0
- package/dist/src/fixtures/index.js +379 -0
- package/dist/src/fixtures/index.js.map +1 -0
- package/dist/src/fixtures/kafka-driver.d.ts +108 -0
- package/dist/src/fixtures/kafka-driver.d.ts.map +1 -0
- package/dist/src/fixtures/kafka-driver.js +113 -0
- package/dist/src/fixtures/kafka-driver.js.map +1 -0
- package/dist/src/fixtures/kafka.fixture.d.ts +75 -0
- package/dist/src/fixtures/kafka.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/kafka.fixture.js +188 -0
- package/dist/src/fixtures/kafka.fixture.js.map +1 -0
- package/dist/src/fixtures/mock-server.fixture.d.ts +142 -0
- package/dist/src/fixtures/mock-server.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/mock-server.fixture.js +271 -0
- package/dist/src/fixtures/mock-server.fixture.js.map +1 -0
- package/dist/src/fixtures/mongodb.fixture.d.ts +121 -0
- package/dist/src/fixtures/mongodb.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/mongodb.fixture.js +258 -0
- package/dist/src/fixtures/mongodb.fixture.js.map +1 -0
- package/dist/src/fixtures/neo4j.fixture.d.ts +72 -0
- package/dist/src/fixtures/neo4j.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/neo4j.fixture.js +202 -0
- package/dist/src/fixtures/neo4j.fixture.js.map +1 -0
- package/dist/src/fixtures/openapi.fixture.d.ts +101 -0
- package/dist/src/fixtures/openapi.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/openapi.fixture.js +266 -0
- package/dist/src/fixtures/openapi.fixture.js.map +1 -0
- package/dist/src/fixtures/optional-package.d.ts +54 -0
- package/dist/src/fixtures/optional-package.d.ts.map +1 -0
- package/dist/src/fixtures/optional-package.js +79 -0
- package/dist/src/fixtures/optional-package.js.map +1 -0
- package/dist/src/fixtures/otp.fixture.d.ts +60 -0
- package/dist/src/fixtures/otp.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/otp.fixture.js +101 -0
- package/dist/src/fixtures/otp.fixture.js.map +1 -0
- package/dist/src/fixtures/realtime.fixture.d.ts +205 -0
- package/dist/src/fixtures/realtime.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/realtime.fixture.js +606 -0
- package/dist/src/fixtures/realtime.fixture.js.map +1 -0
- package/dist/src/fixtures/redis.fixture.d.ts +55 -0
- package/dist/src/fixtures/redis.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/redis.fixture.js +209 -0
- package/dist/src/fixtures/redis.fixture.js.map +1 -0
- package/dist/src/fixtures/s3.fixture.d.ts +126 -0
- package/dist/src/fixtures/s3.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/s3.fixture.js +296 -0
- package/dist/src/fixtures/s3.fixture.js.map +1 -0
- package/dist/src/fixtures/search.fixture.d.ts +178 -0
- package/dist/src/fixtures/search.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/search.fixture.js +472 -0
- package/dist/src/fixtures/search.fixture.js.map +1 -0
- package/dist/src/fixtures/sqs.fixture.d.ts +172 -0
- package/dist/src/fixtures/sqs.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/sqs.fixture.js +428 -0
- package/dist/src/fixtures/sqs.fixture.js.map +1 -0
- package/dist/src/index.d.ts +43 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +48 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mcp/guards.d.ts +21 -0
- package/dist/src/mcp/guards.d.ts.map +1 -0
- package/dist/src/mcp/guards.js +118 -0
- package/dist/src/mcp/guards.js.map +1 -0
- package/dist/src/mcp/project-tools.d.ts +14 -0
- package/dist/src/mcp/project-tools.d.ts.map +1 -0
- package/dist/src/mcp/project-tools.js +252 -0
- package/dist/src/mcp/project-tools.js.map +1 -0
- package/dist/src/mcp/protocol.d.ts +116 -0
- package/dist/src/mcp/protocol.d.ts.map +1 -0
- package/dist/src/mcp/protocol.js +199 -0
- package/dist/src/mcp/protocol.js.map +1 -0
- package/dist/src/mcp/server.d.ts +43 -0
- package/dist/src/mcp/server.d.ts.map +1 -0
- package/dist/src/mcp/server.js +244 -0
- package/dist/src/mcp/server.js.map +1 -0
- package/dist/src/mcp/test-tools.d.ts +65 -0
- package/dist/src/mcp/test-tools.d.ts.map +1 -0
- package/dist/src/mcp/test-tools.js +380 -0
- package/dist/src/mcp/test-tools.js.map +1 -0
- package/dist/src/mcp/tools.d.ts +49 -0
- package/dist/src/mcp/tools.d.ts.map +1 -0
- package/dist/src/mcp/tools.js +726 -0
- package/dist/src/mcp/tools.js.map +1 -0
- package/dist/src/network-error.d.ts +11 -0
- package/dist/src/network-error.d.ts.map +1 -0
- package/dist/src/network-error.js +34 -0
- package/dist/src/network-error.js.map +1 -0
- package/dist/src/openapi/contract.d.ts +98 -0
- package/dist/src/openapi/contract.d.ts.map +1 -0
- package/dist/src/openapi/contract.js +407 -0
- package/dist/src/openapi/contract.js.map +1 -0
- package/dist/src/openapi/generate.d.ts +89 -0
- package/dist/src/openapi/generate.d.ts.map +1 -0
- package/dist/src/openapi/generate.js +607 -0
- package/dist/src/openapi/generate.js.map +1 -0
- package/dist/src/openapi/load.d.ts +8 -0
- package/dist/src/openapi/load.d.ts.map +1 -0
- package/dist/src/openapi/load.js +26 -0
- package/dist/src/openapi/load.js.map +1 -0
- package/dist/src/package-manager.d.ts +58 -0
- package/dist/src/package-manager.d.ts.map +1 -0
- package/dist/src/package-manager.js +137 -0
- package/dist/src/package-manager.js.map +1 -0
- package/dist/src/reporter/history.d.ts +85 -0
- package/dist/src/reporter/history.d.ts.map +1 -0
- package/dist/src/reporter/history.js +147 -0
- package/dist/src/reporter/history.js.map +1 -0
- package/dist/src/reporter/index.d.ts +59 -0
- package/dist/src/reporter/index.d.ts.map +1 -0
- package/dist/src/reporter/index.js +201 -0
- package/dist/src/reporter/index.js.map +1 -0
- package/dist/src/reporter/last-run.d.ts +88 -0
- package/dist/src/reporter/last-run.d.ts.map +1 -0
- package/dist/src/reporter/last-run.js +133 -0
- package/dist/src/reporter/last-run.js.map +1 -0
- package/dist/src/reporter/quarantine.d.ts +62 -0
- package/dist/src/reporter/quarantine.d.ts.map +1 -0
- package/dist/src/reporter/quarantine.js +148 -0
- package/dist/src/reporter/quarantine.js.map +1 -0
- package/dist/src/secrets/index.d.ts +4 -0
- package/dist/src/secrets/index.d.ts.map +1 -0
- package/dist/src/secrets/index.js +3 -0
- package/dist/src/secrets/index.js.map +1 -0
- package/dist/src/secrets/provider.interface.d.ts +30 -0
- package/dist/src/secrets/provider.interface.d.ts.map +1 -0
- package/dist/src/secrets/provider.interface.js +2 -0
- package/dist/src/secrets/provider.interface.js.map +1 -0
- package/dist/src/secrets/providers/aws.provider.d.ts +33 -0
- package/dist/src/secrets/providers/aws.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/aws.provider.js +88 -0
- package/dist/src/secrets/providers/aws.provider.js.map +1 -0
- package/dist/src/secrets/providers/azure.provider.d.ts +26 -0
- package/dist/src/secrets/providers/azure.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/azure.provider.js +71 -0
- package/dist/src/secrets/providers/azure.provider.js.map +1 -0
- package/dist/src/secrets/providers/env-file.provider.d.ts +29 -0
- package/dist/src/secrets/providers/env-file.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/env-file.provider.js +56 -0
- package/dist/src/secrets/providers/env-file.provider.js.map +1 -0
- package/dist/src/secrets/providers/gitlab.provider.d.ts +26 -0
- package/dist/src/secrets/providers/gitlab.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/gitlab.provider.js +67 -0
- package/dist/src/secrets/providers/gitlab.provider.js.map +1 -0
- package/dist/src/secrets/providers/index.d.ts +52 -0
- package/dist/src/secrets/providers/index.d.ts.map +1 -0
- package/dist/src/secrets/providers/index.js +81 -0
- package/dist/src/secrets/providers/index.js.map +1 -0
- package/dist/src/secrets/providers/openbao.provider.d.ts +28 -0
- package/dist/src/secrets/providers/openbao.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/openbao.provider.js +29 -0
- package/dist/src/secrets/providers/openbao.provider.js.map +1 -0
- package/dist/src/secrets/providers/vault-compatible.d.ts +140 -0
- package/dist/src/secrets/providers/vault-compatible.d.ts.map +1 -0
- package/dist/src/secrets/providers/vault-compatible.js +405 -0
- package/dist/src/secrets/providers/vault-compatible.js.map +1 -0
- package/dist/src/secrets/providers/vault.provider.d.ts +27 -0
- package/dist/src/secrets/providers/vault.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/vault.provider.js +23 -0
- package/dist/src/secrets/providers/vault.provider.js.map +1 -0
- package/dist/src/secrets/secrets-manager.d.ts +67 -0
- package/dist/src/secrets/secrets-manager.d.ts.map +1 -0
- package/dist/src/secrets/secrets-manager.js +255 -0
- package/dist/src/secrets/secrets-manager.js.map +1 -0
- package/dist/src/steps/amqp.steps.d.ts +37 -0
- package/dist/src/steps/amqp.steps.d.ts.map +1 -0
- package/dist/src/steps/amqp.steps.js +86 -0
- package/dist/src/steps/amqp.steps.js.map +1 -0
- package/dist/src/steps/appium.steps.d.ts +53 -0
- package/dist/src/steps/appium.steps.d.ts.map +1 -0
- package/dist/src/steps/appium.steps.js +109 -0
- package/dist/src/steps/appium.steps.js.map +1 -0
- package/dist/src/steps/aws.steps.d.ts +47 -0
- package/dist/src/steps/aws.steps.d.ts.map +1 -0
- package/dist/src/steps/aws.steps.js +116 -0
- package/dist/src/steps/aws.steps.js.map +1 -0
- package/dist/src/steps/browser.steps.d.ts +54 -0
- package/dist/src/steps/browser.steps.d.ts.map +1 -0
- package/dist/src/steps/browser.steps.js +102 -0
- package/dist/src/steps/browser.steps.js.map +1 -0
- package/dist/src/steps/cassandra.steps.d.ts +32 -0
- package/dist/src/steps/cassandra.steps.d.ts.map +1 -0
- package/dist/src/steps/cassandra.steps.js +81 -0
- package/dist/src/steps/cassandra.steps.js.map +1 -0
- package/dist/src/steps/clickhouse.steps.d.ts +30 -0
- package/dist/src/steps/clickhouse.steps.d.ts.map +1 -0
- package/dist/src/steps/clickhouse.steps.js +73 -0
- package/dist/src/steps/clickhouse.steps.js.map +1 -0
- package/dist/src/steps/database.steps.d.ts +43 -0
- package/dist/src/steps/database.steps.d.ts.map +1 -0
- package/dist/src/steps/database.steps.js +79 -0
- package/dist/src/steps/database.steps.js.map +1 -0
- package/dist/src/steps/dynamodb.steps.d.ts +32 -0
- package/dist/src/steps/dynamodb.steps.d.ts.map +1 -0
- package/dist/src/steps/dynamodb.steps.js +89 -0
- package/dist/src/steps/dynamodb.steps.js.map +1 -0
- package/dist/src/steps/graphql.steps.d.ts +60 -0
- package/dist/src/steps/graphql.steps.d.ts.map +1 -0
- package/dist/src/steps/graphql.steps.js +76 -0
- package/dist/src/steps/graphql.steps.js.map +1 -0
- package/dist/src/steps/grpc.steps.d.ts +29 -0
- package/dist/src/steps/grpc.steps.d.ts.map +1 -0
- package/dist/src/steps/grpc.steps.js +68 -0
- package/dist/src/steps/grpc.steps.js.map +1 -0
- package/dist/src/steps/inbox.steps.d.ts +30 -0
- package/dist/src/steps/inbox.steps.d.ts.map +1 -0
- package/dist/src/steps/inbox.steps.js +72 -0
- package/dist/src/steps/inbox.steps.js.map +1 -0
- package/dist/src/steps/index.d.ts +43 -0
- package/dist/src/steps/index.d.ts.map +1 -0
- package/dist/src/steps/index.js +26 -0
- package/dist/src/steps/index.js.map +1 -0
- package/dist/src/steps/kafka.steps.d.ts +56 -0
- package/dist/src/steps/kafka.steps.d.ts.map +1 -0
- package/dist/src/steps/kafka.steps.js +61 -0
- package/dist/src/steps/kafka.steps.js.map +1 -0
- package/dist/src/steps/mock-server.steps.d.ts +21 -0
- package/dist/src/steps/mock-server.steps.d.ts.map +1 -0
- package/dist/src/steps/mock-server.steps.js +45 -0
- package/dist/src/steps/mock-server.steps.js.map +1 -0
- package/dist/src/steps/mongodb.steps.d.ts +107 -0
- package/dist/src/steps/mongodb.steps.d.ts.map +1 -0
- package/dist/src/steps/mongodb.steps.js +117 -0
- package/dist/src/steps/mongodb.steps.js.map +1 -0
- package/dist/src/steps/openapi.steps.d.ts +49 -0
- package/dist/src/steps/openapi.steps.d.ts.map +1 -0
- package/dist/src/steps/openapi.steps.js +113 -0
- package/dist/src/steps/openapi.steps.js.map +1 -0
- package/dist/src/steps/otp.steps.d.ts +43 -0
- package/dist/src/steps/otp.steps.d.ts.map +1 -0
- package/dist/src/steps/otp.steps.js +83 -0
- package/dist/src/steps/otp.steps.js.map +1 -0
- package/dist/src/steps/realtime.steps.d.ts +40 -0
- package/dist/src/steps/realtime.steps.d.ts.map +1 -0
- package/dist/src/steps/realtime.steps.js +116 -0
- package/dist/src/steps/realtime.steps.js.map +1 -0
- package/dist/src/steps/redis.steps.d.ts +54 -0
- package/dist/src/steps/redis.steps.d.ts.map +1 -0
- package/dist/src/steps/redis.steps.js +89 -0
- package/dist/src/steps/redis.steps.js.map +1 -0
- package/dist/src/steps/search.steps.d.ts +23 -0
- package/dist/src/steps/search.steps.d.ts.map +1 -0
- package/dist/src/steps/search.steps.js +54 -0
- package/dist/src/steps/search.steps.js.map +1 -0
- package/dist/src/test-data/factory.d.ts +82 -0
- package/dist/src/test-data/factory.d.ts.map +1 -0
- package/dist/src/test-data/factory.js +116 -0
- package/dist/src/test-data/factory.js.map +1 -0
- package/dist/src/test-data/index.d.ts +4 -0
- package/dist/src/test-data/index.d.ts.map +1 -0
- package/dist/src/test-data/index.js +4 -0
- package/dist/src/test-data/index.js.map +1 -0
- package/dist/src/test-data/registry.d.ts +37 -0
- package/dist/src/test-data/registry.d.ts.map +1 -0
- package/dist/src/test-data/registry.js +51 -0
- package/dist/src/test-data/registry.js.map +1 -0
- package/dist/src/test-data/tracking.d.ts +47 -0
- package/dist/src/test-data/tracking.d.ts.map +1 -0
- package/dist/src/test-data/tracking.js +166 -0
- package/dist/src/test-data/tracking.js.map +1 -0
- package/environments.json +263 -0
- package/package.json +299 -5
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test convention checker — `propmaster check` / `propmaster next-id`.
|
|
3
|
+
*
|
|
4
|
+
* Enforces the conventions taught in AGENTS.md so humans and AI agents get
|
|
5
|
+
* fast, machine-readable feedback instead of relying on prose rules:
|
|
6
|
+
*
|
|
7
|
+
* tc-id every test title starts with `[TC-XXX-NNN]`
|
|
8
|
+
* tc-tag every test has `{ tag: ['@TC-XXX-NNN'] }` matching its title ID
|
|
9
|
+
* tc-unique every TestCaseID is unique across the whole suite
|
|
10
|
+
* test-step every test body uses `test.step()` (directly or via a *Steps class)
|
|
11
|
+
* import test files import `test`/`expect` from the framework, never `@playwright/test`
|
|
12
|
+
*
|
|
13
|
+
* Zero dependencies on purpose: TypeScript 7 ships no JS compiler API, so the
|
|
14
|
+
* scanner is a small hand-written tokenizer that understands strings,
|
|
15
|
+
* template literals, comments and bracket nesting — enough to find `test(...)`
|
|
16
|
+
* calls and split their arguments.
|
|
17
|
+
*
|
|
18
|
+
* This module has no side effects; the CLI entry point is `init.ts`.
|
|
19
|
+
*/
|
|
20
|
+
import { STANDARDS_FILE, checkStandards, loadStandards, maskNonCode } from './standards.js';
|
|
21
|
+
import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
|
|
22
|
+
import { dirname, join, relative, resolve, sep } from 'node:path';
|
|
23
|
+
import { loadQuarantine, quarantinePath, quarantineWarnings } from '../reporter/quarantine.js';
|
|
24
|
+
export const DEFAULT_CONFIG = {
|
|
25
|
+
testDirs: ['tests'],
|
|
26
|
+
testFileSuffixes: ['.spec.ts', '.prop.ts'],
|
|
27
|
+
exemptDirs: ['tests/unit/', 'tests/properties/'],
|
|
28
|
+
docFiles: ['AGENTS.md', 'SKILLS.md'],
|
|
29
|
+
};
|
|
30
|
+
function stringArray(value, key) {
|
|
31
|
+
if (value === undefined)
|
|
32
|
+
return undefined;
|
|
33
|
+
if (!Array.isArray(value) || !value.every((v) => typeof v === 'string')) {
|
|
34
|
+
throw new Error(`package.json "propmaster.${key}" must be an array of strings.`);
|
|
35
|
+
}
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
/** Merges the `propmaster` key of `<root>/package.json` over the defaults. */
|
|
39
|
+
export function loadConfig(root) {
|
|
40
|
+
const pkgPath = join(root, 'package.json');
|
|
41
|
+
if (!existsSync(pkgPath))
|
|
42
|
+
return { ...DEFAULT_CONFIG };
|
|
43
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
|
|
44
|
+
const raw = pkg.propmaster ?? {};
|
|
45
|
+
const keys = Object.keys(DEFAULT_CONFIG);
|
|
46
|
+
const config = { ...DEFAULT_CONFIG };
|
|
47
|
+
for (const key of keys) {
|
|
48
|
+
const value = stringArray(raw[key], key);
|
|
49
|
+
if (value)
|
|
50
|
+
config[key] = value;
|
|
51
|
+
}
|
|
52
|
+
// Normalise exempt dirs to a trailing slash so `tests/unit` can't match `tests/unit-extra`.
|
|
53
|
+
config.exemptDirs = config.exemptDirs.map((d) => (d.endsWith('/') ? d : `${d}/`));
|
|
54
|
+
return config;
|
|
55
|
+
}
|
|
56
|
+
/** Walks up from `start` to the nearest directory containing a package.json. */
|
|
57
|
+
export function findProjectRoot(start = process.cwd()) {
|
|
58
|
+
let dir = resolve(start);
|
|
59
|
+
for (;;) {
|
|
60
|
+
if (existsSync(join(dir, 'package.json')))
|
|
61
|
+
return dir;
|
|
62
|
+
const parent = dirname(dir);
|
|
63
|
+
if (parent === dir)
|
|
64
|
+
return resolve(start);
|
|
65
|
+
dir = parent;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// ─── Source scanning ────────────────────────────────────────────────────────
|
|
69
|
+
const CATEGORY = '[A-Z][A-Z0-9]{1,5}';
|
|
70
|
+
/** The built-in TestCaseID categories, for the `next-id` menu. Projects can use any other code. */
|
|
71
|
+
export const KNOWN_CATEGORIES = [
|
|
72
|
+
{ code: 'API', description: 'OpenAPI / REST' },
|
|
73
|
+
{ code: 'GQL', description: 'GraphQL' },
|
|
74
|
+
{ code: 'GRPC', description: 'gRPC' },
|
|
75
|
+
{ code: 'RT', description: 'WebSocket / SSE' },
|
|
76
|
+
{ code: 'DB', description: 'SQL databases' },
|
|
77
|
+
{ code: 'MDB', description: 'MongoDB' },
|
|
78
|
+
{ code: 'NEO', description: 'Neo4j' },
|
|
79
|
+
{ code: 'CAS', description: 'Cassandra / ScyllaDB' },
|
|
80
|
+
{ code: 'CH', description: 'ClickHouse' },
|
|
81
|
+
{ code: 'RDS', description: 'Redis' },
|
|
82
|
+
{ code: 'KFK', description: 'Kafka' },
|
|
83
|
+
{ code: 'AMQ', description: 'RabbitMQ / AMQP' },
|
|
84
|
+
{ code: 'AWS', description: 'S3, SQS, SNS' },
|
|
85
|
+
{ code: 'DDB', description: 'DynamoDB' },
|
|
86
|
+
{ code: 'SRCH', description: 'Elasticsearch / OpenSearch' },
|
|
87
|
+
{ code: 'BRW', description: 'Browser' },
|
|
88
|
+
{ code: 'APM', description: 'Appium' },
|
|
89
|
+
{ code: 'GDS', description: 'GADS device farm' },
|
|
90
|
+
{ code: 'OTP', description: 'One-time passwords' },
|
|
91
|
+
{ code: 'EML', description: 'Email / inbox' },
|
|
92
|
+
{ code: 'MCK', description: 'Mock server' },
|
|
93
|
+
{ code: 'AUTH', description: 'Auth tokens and roles' },
|
|
94
|
+
{ code: 'INT', description: 'Cross-system integration' },
|
|
95
|
+
{ code: 'PROP', description: 'Property tests' },
|
|
96
|
+
];
|
|
97
|
+
/** Whether `code` is a valid TestCaseID category (2–6 capitals or digits, starting with a capital). */
|
|
98
|
+
export function isCategory(code) {
|
|
99
|
+
return CATEGORY_RE.test(code);
|
|
100
|
+
}
|
|
101
|
+
const ID_RE = new RegExp(`^\\[(TC-(${CATEGORY})-(\\d{3,}))\\]`);
|
|
102
|
+
const PLACEHOLDER_ID_RE = new RegExp(`^\\[(TC-(${CATEGORY}|XXX)-(N{3,}))\\]`);
|
|
103
|
+
const ANY_ID_RE = new RegExp(`TC-(${CATEGORY})-(\\d{3,})`, 'g');
|
|
104
|
+
const CATEGORY_RE = new RegExp(`^${CATEGORY}$`);
|
|
105
|
+
const TEST_MODIFIERS = new Set(['only', 'skip', 'fixme', 'fail']);
|
|
106
|
+
/** Returns the index just past a string/template/comment starting at `i`, or -1. */
|
|
107
|
+
export function skipNonCode(src, i) {
|
|
108
|
+
const c = src[i];
|
|
109
|
+
const n = src[i + 1];
|
|
110
|
+
if (c === '/' && n === '/') {
|
|
111
|
+
const end = src.indexOf('\n', i);
|
|
112
|
+
return end === -1 ? src.length : end;
|
|
113
|
+
}
|
|
114
|
+
if (c === '/' && n === '*') {
|
|
115
|
+
const end = src.indexOf('*/', i + 2);
|
|
116
|
+
return end === -1 ? src.length : end + 2;
|
|
117
|
+
}
|
|
118
|
+
if (c === '"' || c === "'") {
|
|
119
|
+
let j = i + 1;
|
|
120
|
+
while (j < src.length && src[j] !== c) {
|
|
121
|
+
if (src[j] === '\\')
|
|
122
|
+
j++;
|
|
123
|
+
else if (src[j] === '\n')
|
|
124
|
+
break;
|
|
125
|
+
j++;
|
|
126
|
+
}
|
|
127
|
+
return j + 1;
|
|
128
|
+
}
|
|
129
|
+
if (c === '`') {
|
|
130
|
+
let j = i + 1;
|
|
131
|
+
while (j < src.length && src[j] !== '`') {
|
|
132
|
+
if (src[j] === '\\')
|
|
133
|
+
j += 2;
|
|
134
|
+
else if (src[j] === '$' && src[j + 1] === '{')
|
|
135
|
+
j = matchClose(src, j + 1) + 1;
|
|
136
|
+
else
|
|
137
|
+
j++;
|
|
138
|
+
}
|
|
139
|
+
return j + 1;
|
|
140
|
+
}
|
|
141
|
+
return -1;
|
|
142
|
+
}
|
|
143
|
+
/** Given `src[open]` is `(`, `[` or `{`, returns the index of its matching closer. */
|
|
144
|
+
export function matchClose(src, open) {
|
|
145
|
+
let depth = 0;
|
|
146
|
+
for (let i = open; i < src.length;) {
|
|
147
|
+
const skipped = skipNonCode(src, i);
|
|
148
|
+
if (skipped !== -1) {
|
|
149
|
+
i = skipped;
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
const c = src[i];
|
|
153
|
+
if (c === '(' || c === '[' || c === '{')
|
|
154
|
+
depth++;
|
|
155
|
+
else if (c === ')' || c === ']' || c === '}') {
|
|
156
|
+
depth--;
|
|
157
|
+
if (depth === 0)
|
|
158
|
+
return i;
|
|
159
|
+
}
|
|
160
|
+
i++;
|
|
161
|
+
}
|
|
162
|
+
return src.length - 1;
|
|
163
|
+
}
|
|
164
|
+
/** Splits the text between parens into top-level comma-separated arguments. */
|
|
165
|
+
export function splitArgs(src, open, close) {
|
|
166
|
+
const args = [];
|
|
167
|
+
let start = open + 1;
|
|
168
|
+
for (let i = open + 1; i < close;) {
|
|
169
|
+
const skipped = skipNonCode(src, i);
|
|
170
|
+
if (skipped !== -1) {
|
|
171
|
+
i = skipped;
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
const c = src[i];
|
|
175
|
+
if (c === '(' || c === '[' || c === '{') {
|
|
176
|
+
i = matchClose(src, i) + 1;
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
if (c === ',') {
|
|
180
|
+
args.push(src.slice(start, i));
|
|
181
|
+
start = i + 1;
|
|
182
|
+
}
|
|
183
|
+
i++;
|
|
184
|
+
}
|
|
185
|
+
const last = src.slice(start, close);
|
|
186
|
+
if (last.trim())
|
|
187
|
+
args.push(last);
|
|
188
|
+
return args;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Parses a title literal ('..', "..", or `..`). `dynamic` is true for template
|
|
192
|
+
* literals with `${...}` interpolation (parameterized tests generated in a
|
|
193
|
+
* loop). Returns null when the argument is not a literal.
|
|
194
|
+
*/
|
|
195
|
+
function titleLiteral(text) {
|
|
196
|
+
const m = /^(['"`])([\s\S]*)\1$/.exec(text.trim());
|
|
197
|
+
if (!m)
|
|
198
|
+
return null;
|
|
199
|
+
return { title: m[2], dynamic: m[1] === '`' && m[2].includes('${') };
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Finds every test declaration: `test(...)` or `test.only|skip|fixme|fail(...)`
|
|
203
|
+
* whose first argument is a string literal (the title) and that has a body.
|
|
204
|
+
*/
|
|
205
|
+
export function findTests(src) {
|
|
206
|
+
const tests = [];
|
|
207
|
+
for (let i = 0; i < src.length;) {
|
|
208
|
+
const skipped = skipNonCode(src, i);
|
|
209
|
+
if (skipped !== -1) {
|
|
210
|
+
i = skipped;
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
if (src.startsWith('test', i) && !/[\w$.]/.test(src[i - 1] ?? '')) {
|
|
214
|
+
const m = /^test(?:\.(\w+))?\s*\(/.exec(src.slice(i, i + 40));
|
|
215
|
+
if (m && (!m[1] || TEST_MODIFIERS.has(m[1]))) {
|
|
216
|
+
const open = i + m[0].length - 1;
|
|
217
|
+
const close = matchClose(src, open);
|
|
218
|
+
const args = splitArgs(src, open, close);
|
|
219
|
+
const lit = args.length >= 2 ? titleLiteral(args[0]) : null;
|
|
220
|
+
if (lit !== null) {
|
|
221
|
+
tests.push({
|
|
222
|
+
index: i,
|
|
223
|
+
title: lit.title,
|
|
224
|
+
dynamic: lit.dynamic,
|
|
225
|
+
options: args.length >= 3 ? args[1] : null,
|
|
226
|
+
body: args[args.length - 1],
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
i = open + 1;
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
i++;
|
|
234
|
+
}
|
|
235
|
+
return tests;
|
|
236
|
+
}
|
|
237
|
+
const DESCRIBE_RE = /^test\.describe(?:\.(?:only|skip|fixme|serial|parallel))*(?:\.(?:only|skip|fixme))?\s*\(/;
|
|
238
|
+
/** Finds every `test.describe(...)` (and .serial/.parallel/.only/.skip/.fixme) with a literal title. */
|
|
239
|
+
export function findDescribes(src) {
|
|
240
|
+
const out = [];
|
|
241
|
+
for (let i = 0; i < src.length;) {
|
|
242
|
+
const skipped = skipNonCode(src, i);
|
|
243
|
+
if (skipped !== -1) {
|
|
244
|
+
i = skipped;
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
if (src.startsWith('test.describe', i) && !/[\w$.]/.test(src[i - 1] ?? '')) {
|
|
248
|
+
const m = DESCRIBE_RE.exec(src.slice(i, i + 60));
|
|
249
|
+
if (m) {
|
|
250
|
+
const open = i + m[0].length - 1;
|
|
251
|
+
const close = matchClose(src, open);
|
|
252
|
+
const args = splitArgs(src, open, close);
|
|
253
|
+
const lit = args.length >= 2 ? titleLiteral(args[0]) : null;
|
|
254
|
+
if (lit)
|
|
255
|
+
out.push({ index: i, title: lit.title, options: args.length >= 3 ? args[1].trim() : null, open, close });
|
|
256
|
+
i = open + 1;
|
|
257
|
+
continue;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
i++;
|
|
261
|
+
}
|
|
262
|
+
return out;
|
|
263
|
+
}
|
|
264
|
+
export function lineOf(src, index) {
|
|
265
|
+
let line = 1;
|
|
266
|
+
for (let i = 0; i < index; i++)
|
|
267
|
+
if (src[i] === '\n')
|
|
268
|
+
line++;
|
|
269
|
+
return line;
|
|
270
|
+
}
|
|
271
|
+
/** Returns `{ code, lineOffset }` for each ```ts / ```typescript block in a markdown file. */
|
|
272
|
+
export function codeBlocks(md) {
|
|
273
|
+
const blocks = [];
|
|
274
|
+
// `[^\S\n]*` (not `\s*`) so leading blank lines stay in the block and line numbers stay right.
|
|
275
|
+
const re = /^```(?:ts|typescript)[^\S\n]*\n([\s\S]*?)^```/gm;
|
|
276
|
+
let m;
|
|
277
|
+
while ((m = re.exec(md))) {
|
|
278
|
+
blocks.push({ code: m[1], lineOffset: lineOf(md, m.index) });
|
|
279
|
+
}
|
|
280
|
+
return blocks;
|
|
281
|
+
}
|
|
282
|
+
const STEP_MESSAGE = "Body must be broken into `await test.step('Step N: ...', async () => { ... })` blocks (or use a *Steps class).";
|
|
283
|
+
function checkTest(t, ctx) {
|
|
284
|
+
const { file, line, isDoc, violations, ids } = ctx;
|
|
285
|
+
const report = (rule, message) => violations.push({ file, line, rule, test: t.title, message });
|
|
286
|
+
const hasStep = /\.step\s*\(|\w+Steps\b/.test(t.body);
|
|
287
|
+
// Parameterized test (title built from a template literal, e.g. inside a
|
|
288
|
+
// for-loop): the ID must come from the test data so each generated test
|
|
289
|
+
// gets its own. It can't be resolved statically, so check the shape only.
|
|
290
|
+
if (t.dynamic) {
|
|
291
|
+
const idExprMatch = /^\[\$\{([^}]+)\}\]/.exec(t.title);
|
|
292
|
+
if (!idExprMatch) {
|
|
293
|
+
report('tc-id', 'Parameterized test title must start with "[${...}]" — give each case its own ID in the test data, e.g. `{ id: \'TC-BRW-012\', ... }`.');
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
const idExpr = idExprMatch[1].trim();
|
|
297
|
+
const tagged = t.options !== null && t.options.includes('tag') && t.options.includes(idExpr);
|
|
298
|
+
if (!tagged)
|
|
299
|
+
report('tc-tag', `Missing \`{ tag: [\`@\${${idExpr}}\`] }\` as the second argument to test().`);
|
|
300
|
+
}
|
|
301
|
+
if (!hasStep)
|
|
302
|
+
report('test-step', STEP_MESSAGE);
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
const real = ID_RE.exec(t.title);
|
|
306
|
+
const placeholder = PLACEHOLDER_ID_RE.exec(t.title);
|
|
307
|
+
let id = null;
|
|
308
|
+
if (real) {
|
|
309
|
+
id = real[1];
|
|
310
|
+
if (!isDoc)
|
|
311
|
+
ids.push({ id, category: real[2], num: Number(real[3]), file, line });
|
|
312
|
+
}
|
|
313
|
+
else if (placeholder && isDoc) {
|
|
314
|
+
id = placeholder[1];
|
|
315
|
+
}
|
|
316
|
+
else if (placeholder) {
|
|
317
|
+
const category = placeholder[2] === 'XXX' ? '<CATEGORY>' : placeholder[2];
|
|
318
|
+
report('tc-id', `Placeholder ID "${placeholder[1]}" left in title — run \`npm run next-id -- ${category}\` and use the printed ID.`);
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
report('tc-id', 'Title must start with "[TC-XXX-NNN]" — run `npm run next-id -- <CATEGORY>` to get a free ID.');
|
|
322
|
+
}
|
|
323
|
+
if (id) {
|
|
324
|
+
const tagged = t.options !== null && new RegExp(`['"\`]@${id}['"\`]`).test(t.options);
|
|
325
|
+
if (!tagged)
|
|
326
|
+
report('tc-tag', `Missing \`{ tag: ['@${id}'] }\` as the second argument to test().`);
|
|
327
|
+
}
|
|
328
|
+
if (!hasStep)
|
|
329
|
+
report('test-step', STEP_MESSAGE);
|
|
330
|
+
}
|
|
331
|
+
/** Value (non-type-only) import of `@playwright/test`. */
|
|
332
|
+
const PLAYWRIGHT_VALUE_IMPORT = /^\s*import\s+(?!type\b)[^;]*?from\s+['"]@playwright\/test['"]/m;
|
|
333
|
+
/**
|
|
334
|
+
* Checks a set of in-memory sources. Pure: no filesystem access, so it is the
|
|
335
|
+
* unit-testable core of {@link collect}.
|
|
336
|
+
*/
|
|
337
|
+
export function checkSources(sources, standards = null) {
|
|
338
|
+
const violations = [];
|
|
339
|
+
const warnings = [];
|
|
340
|
+
const ids = [];
|
|
341
|
+
for (const { file, content: src, kind } of sources) {
|
|
342
|
+
if (kind === 'exempt') {
|
|
343
|
+
// Self-tests reserve any IDs they mention, so next-id skips them.
|
|
344
|
+
for (const m of src.matchAll(ANY_ID_RE)) {
|
|
345
|
+
ids.push({ id: m[0], category: m[1], num: Number(m[2]), file, line: lineOf(src, m.index ?? 0), reserved: true });
|
|
346
|
+
}
|
|
347
|
+
continue;
|
|
348
|
+
}
|
|
349
|
+
if (kind === 'doc') {
|
|
350
|
+
for (const block of codeBlocks(src)) {
|
|
351
|
+
for (const t of findTests(block.code)) {
|
|
352
|
+
const line = block.lineOffset + lineOf(block.code, t.index);
|
|
353
|
+
checkTest(t, { file, line, isDoc: true, violations, ids });
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
// Test files need the framework's fixture-registered `test`. Type-only
|
|
359
|
+
// imports are fine, and property tests (*.prop.ts) use no fixtures.
|
|
360
|
+
const importMatch = file.endsWith('.prop.ts') ? null : PLAYWRIGHT_VALUE_IMPORT.exec(src);
|
|
361
|
+
if (importMatch) {
|
|
362
|
+
violations.push({
|
|
363
|
+
file,
|
|
364
|
+
line: lineOf(src, importMatch.index + importMatch[0].search(/\S/)),
|
|
365
|
+
rule: 'import',
|
|
366
|
+
message: "Import `test`/`expect` from the framework ('@inluxc/propmaster'), not '@playwright/test' — the framework's test object has the fixtures registered. `import type { ... } from '@playwright/test'` is fine.",
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
const tests = findTests(src);
|
|
370
|
+
for (const t of tests) {
|
|
371
|
+
checkTest(t, { file, line: lineOf(src, t.index), isDoc: false, violations, ids });
|
|
372
|
+
}
|
|
373
|
+
if (standards?.rules.length) {
|
|
374
|
+
const result = checkStandards(standards, {
|
|
375
|
+
file,
|
|
376
|
+
src,
|
|
377
|
+
tests,
|
|
378
|
+
describes: findDescribes(src),
|
|
379
|
+
lineOf: (index) => lineOf(src, index),
|
|
380
|
+
masked: maskNonCode(src, skipNonCode),
|
|
381
|
+
});
|
|
382
|
+
violations.push(...result.errors);
|
|
383
|
+
warnings.push(...result.warnings);
|
|
384
|
+
}
|
|
385
|
+
// Parameterized tests keep their IDs in data rows, which can't be tied
|
|
386
|
+
// to a test statically. Reserve every ID mentioned in such files so
|
|
387
|
+
// next-id never hands one of them out again.
|
|
388
|
+
if (tests.some((t) => t.dynamic)) {
|
|
389
|
+
for (const m of src.matchAll(ANY_ID_RE)) {
|
|
390
|
+
ids.push({ id: m[0], category: m[1], num: Number(m[2]), file, line: lineOf(src, m.index ?? 0), reserved: true });
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
// Uniqueness — an ID may be used by at most one test. Mentions in exempt
|
|
395
|
+
// files only reserve numbers for next-id (they are often sample strings in
|
|
396
|
+
// self-tests, not tests), so they never count as a collision.
|
|
397
|
+
const byId = new Map();
|
|
398
|
+
for (const entry of ids) {
|
|
399
|
+
if (entry.reserved)
|
|
400
|
+
continue;
|
|
401
|
+
const list = byId.get(entry.id) ?? [];
|
|
402
|
+
list.push(entry);
|
|
403
|
+
byId.set(entry.id, list);
|
|
404
|
+
}
|
|
405
|
+
for (const [id, entries] of byId) {
|
|
406
|
+
if (entries.length < 2)
|
|
407
|
+
continue;
|
|
408
|
+
const where = entries.map((e) => `${e.file}:${e.line}`).join(', ');
|
|
409
|
+
for (const e of entries.slice(1)) {
|
|
410
|
+
violations.push({ file: e.file, line: e.line, rule: 'tc-unique', message: `${id} is already used (${where}).` });
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return { violations, ids, warnings };
|
|
414
|
+
}
|
|
415
|
+
// ─── Files ──────────────────────────────────────────────────────────────────
|
|
416
|
+
export function walk(dir) {
|
|
417
|
+
if (!existsSync(dir))
|
|
418
|
+
return [];
|
|
419
|
+
const out = [];
|
|
420
|
+
for (const name of readdirSync(dir)) {
|
|
421
|
+
if (name === 'node_modules' || name.startsWith('.'))
|
|
422
|
+
continue;
|
|
423
|
+
const full = join(dir, name);
|
|
424
|
+
if (statSync(full).isDirectory())
|
|
425
|
+
out.push(...walk(full));
|
|
426
|
+
else
|
|
427
|
+
out.push(full);
|
|
428
|
+
}
|
|
429
|
+
return out;
|
|
430
|
+
}
|
|
431
|
+
/** Reads the project's test files and docs and checks them. */
|
|
432
|
+
export function collect(root, config = loadConfig(root)) {
|
|
433
|
+
const rel = (p) => relative(root, p).split(sep).join('/');
|
|
434
|
+
const sources = [];
|
|
435
|
+
const seen = new Set();
|
|
436
|
+
for (const dir of config.testDirs) {
|
|
437
|
+
for (const full of walk(join(root, dir))) {
|
|
438
|
+
const file = rel(full);
|
|
439
|
+
if (seen.has(file) || !config.testFileSuffixes.some((s) => file.endsWith(s)))
|
|
440
|
+
continue;
|
|
441
|
+
seen.add(file);
|
|
442
|
+
const exempt = config.exemptDirs.some((d) => file.startsWith(d));
|
|
443
|
+
sources.push({ file, content: readFileSync(full, 'utf8'), kind: exempt ? 'exempt' : 'test' });
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
for (const doc of config.docFiles) {
|
|
447
|
+
const full = join(root, doc);
|
|
448
|
+
if (existsSync(full))
|
|
449
|
+
sources.push({ file: doc, content: readFileSync(full, 'utf8'), kind: 'doc' });
|
|
450
|
+
}
|
|
451
|
+
const { standards, problems } = loadStandards(root);
|
|
452
|
+
const result = checkSources(sources, problems.length ? null : standards);
|
|
453
|
+
for (const problem of problems)
|
|
454
|
+
result.violations.unshift({ file: STANDARDS_FILE, line: 1, rule: 'standards', message: problem });
|
|
455
|
+
return result;
|
|
456
|
+
}
|
|
457
|
+
/** Returns the next `count` free IDs in `category`. */
|
|
458
|
+
export function nextIds(category, ids, count = 1) {
|
|
459
|
+
const max = ids.filter((e) => e.category === category).reduce((m, e) => Math.max(m, e.num), 0);
|
|
460
|
+
return Array.from({ length: count }, (_, n) => `TC-${category}-${String(max + 1 + n).padStart(3, '0')}`);
|
|
461
|
+
}
|
|
462
|
+
// ─── CLI commands ───────────────────────────────────────────────────────────
|
|
463
|
+
/**
|
|
464
|
+
* The quarantine file's problems (violations: it's invalid) and warnings
|
|
465
|
+
* (entries past their age, IDs no test has). No file: neither.
|
|
466
|
+
*/
|
|
467
|
+
export function checkQuarantine(root, ids, now = new Date()) {
|
|
468
|
+
const file = quarantinePath(root);
|
|
469
|
+
const shown = relative(root, file).split(sep).join('/') || file;
|
|
470
|
+
try {
|
|
471
|
+
const quarantine = loadQuarantine(file);
|
|
472
|
+
const known = new Set(ids.filter((e) => !e.reserved).map((e) => e.id));
|
|
473
|
+
return { violations: [], warnings: quarantineWarnings(quarantine, known, now).map((w) => `${shown}: ${w}`) };
|
|
474
|
+
}
|
|
475
|
+
catch (error) {
|
|
476
|
+
return {
|
|
477
|
+
violations: [{ file: shown, line: 1, rule: 'quarantine', message: error.message.replace(`${file}:\n `, '').replace(`${file} `, '') }],
|
|
478
|
+
warnings: [],
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
/** `propmaster check [--json] [--list-ids] [--root <dir>]`. Returns the exit code. */
|
|
483
|
+
export function runCheck(argv) {
|
|
484
|
+
const root = rootFrom(argv);
|
|
485
|
+
const collected = collect(root);
|
|
486
|
+
const { ids } = collected;
|
|
487
|
+
const quarantine = checkQuarantine(root, ids);
|
|
488
|
+
const violations = [...collected.violations, ...quarantine.violations];
|
|
489
|
+
const { warnings } = quarantine;
|
|
490
|
+
if (argv.includes('--list-ids')) {
|
|
491
|
+
const sorted = [...ids].sort((a, b) => a.category.localeCompare(b.category) || a.num - b.num);
|
|
492
|
+
for (const e of sorted)
|
|
493
|
+
console.log(`${e.id}\t${e.file}:${e.line}${e.reserved ? '\t(reserved)' : ''}`);
|
|
494
|
+
return 0;
|
|
495
|
+
}
|
|
496
|
+
if (argv.includes('--json')) {
|
|
497
|
+
console.log(JSON.stringify({ ok: violations.length === 0, violations, warnings, standardWarnings: collected.warnings }, null, 2));
|
|
498
|
+
return violations.length ? 1 : 0;
|
|
499
|
+
}
|
|
500
|
+
for (const w of warnings)
|
|
501
|
+
console.log(`⚠ ${w}`);
|
|
502
|
+
for (const v of collected.warnings)
|
|
503
|
+
console.log(`⚠ ${v.file}:${v.line} [${v.rule}]${v.test ? ` "${v.test}"` : ''}\n ${v.message}`);
|
|
504
|
+
if (violations.length === 0) {
|
|
505
|
+
const inUse = new Set(ids.filter((e) => !e.reserved).map((e) => e.id)).size;
|
|
506
|
+
console.log(`✓ Test conventions OK (${inUse} TestCaseIDs in use)`);
|
|
507
|
+
return 0;
|
|
508
|
+
}
|
|
509
|
+
for (const v of violations) {
|
|
510
|
+
const name = v.test ? ` "${v.test}"` : '';
|
|
511
|
+
console.log(`${v.file}:${v.line} [${v.rule}]${name}\n ${v.message}`);
|
|
512
|
+
}
|
|
513
|
+
const own = violations.filter((v) => v.rule.startsWith('standard'));
|
|
514
|
+
const builtIn = violations.length - own.length;
|
|
515
|
+
const where = [builtIn ? 'AGENTS.md → "Test Case ID Convention"' : '', own.length ? `the linked pages for the standard:* rules (\`propmaster standards\` lists them)` : ''].filter(Boolean).join('; ');
|
|
516
|
+
console.log(`\n✗ ${violations.length} test convention violation(s). See ${where}.`);
|
|
517
|
+
return 1;
|
|
518
|
+
}
|
|
519
|
+
/** `propmaster next-id <CATEGORY> [count] [--root <dir>]`. Returns the exit code. */
|
|
520
|
+
export function runNextId(argv) {
|
|
521
|
+
const positional = withoutRoot(argv).filter((a) => !a.startsWith('--'));
|
|
522
|
+
const category = (positional[0] ?? '').toUpperCase();
|
|
523
|
+
if (!CATEGORY_RE.test(category)) {
|
|
524
|
+
console.error('Usage: propmaster next-id <CATEGORY> [count] (e.g. API, DB, KFK, RDS, MDB, NEO, GQL, BRW, APM, GDS, OTP)');
|
|
525
|
+
return 2;
|
|
526
|
+
}
|
|
527
|
+
const count = Math.max(1, Math.floor(Number(positional[1])) || 1);
|
|
528
|
+
const { ids } = collect(rootFrom(argv));
|
|
529
|
+
for (const id of nextIds(category, ids, count))
|
|
530
|
+
console.log(id);
|
|
531
|
+
return 0;
|
|
532
|
+
}
|
|
533
|
+
function rootFrom(argv) {
|
|
534
|
+
const i = argv.indexOf('--root');
|
|
535
|
+
return i !== -1 && argv[i + 1] ? resolve(argv[i + 1]) : findProjectRoot();
|
|
536
|
+
}
|
|
537
|
+
function withoutRoot(argv) {
|
|
538
|
+
const i = argv.indexOf('--root');
|
|
539
|
+
return i === -1 ? argv : [...argv.slice(0, i), ...argv.slice(i + 2)];
|
|
540
|
+
}
|
|
541
|
+
//# sourceMappingURL=check-tests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-tests.js","sourceRoot":"","sources":["../../../src/cli/check-tests.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAsC,MAAM,gBAAgB,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAgC/F,MAAM,CAAC,MAAM,cAAc,GAAgB;IACvC,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,gBAAgB,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;IAC1C,UAAU,EAAE,CAAC,aAAa,EAAE,mBAAmB,CAAC;IAChD,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;CACvC,CAAC;AAEF,SAAS,WAAW,CAAC,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,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `propmaster coverage`: what the tests cover, per layer (unit, integration,
|
|
3
|
+
* e2e). Read from the test sources, the test history, the OpenAPI spec and
|
|
4
|
+
* any code-coverage reports already in the project; runs nothing.
|
|
5
|
+
*
|
|
6
|
+
* npx propmaster coverage summary and gaps
|
|
7
|
+
* npx propmaster coverage --layer e2e one layer
|
|
8
|
+
* npx propmaster coverage --report app/coverage/lcov.info
|
|
9
|
+
* npx propmaster coverage --json --tests everything, with each test and what it touches
|
|
10
|
+
*/
|
|
11
|
+
export declare const COVERAGE_HELP = "\n npx propmaster coverage [--layer unit|integration|e2e] [--spec <path|url>] [--no-spec]\n [--report <file>]... [--runs <n>] [--tests] [--json] [-e <env>] [--root <dir>]\n\n What the tests cover, per layer of the pyramid:\n unit no service, browser or device (plain logic, property tests, Vitest/Jest files,\n and the application's own tests in Python, Go, Java/Kotlin, C#, Ruby, PHP, Rust, ...)\n integration API clients and backend clients (tests/api, tests/integration)\n e2e browser and device tests (tests/e2e, tests/mobile)\n\n For each layer: tests, their state in the code (skip/fixme) and in the test\n history (last run, pass rate), the fixtures they use and what they touch\n (operations, tables, topics, queues, routes, ...). Then the OpenAPI\n operations and documented status codes no test asserts, backends that are\n configured but untested, and the code-coverage reports already in the\n project, from any language's tools (LCOV, Istanbul, Cobertura, JaCoCo,\n Clover, OpenCover, Go cover profiles, coverage.py JSON, SimpleCov). Reads\n files only.\n\n --layer Only this layer\n --spec OpenAPI spec (default: openapi.specPath of the environment); --no-spec to skip it\n --report A code-coverage report file (default: the ones found in the project); repeatable\n --runs Newest test-history runs to read (default 30)\n --tests With --json: every test and what it touches\n --json The whole report as JSON\n";
|
|
12
|
+
/** Runs the command; returns the exit code. */
|
|
13
|
+
export declare function runCoverage(argv: string[], log?: (line?: string) => void, cwd?: string): Promise<number>;
|
|
14
|
+
//# sourceMappingURL=coverage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage.d.ts","sourceRoot":"","sources":["../../../src/cli/coverage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH,eAAO,MAAM,aAAa,igDAyBzB,CAAC;AAaF,+CAA+C;AAC/C,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,GAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAkB,EAAE,GAAG,GAAE,MAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqC1I"}
|