@inluxc/propmaster 0.0.0-stage → 1.0.0
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 +370 -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
package/README.md
CHANGED
|
@@ -1,3 +1,697 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><img src="https://propmaster.dev/logo.svg" alt="Propmaster logo" width="96"></p>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Propmaster (`@inluxc/propmaster`)
|
|
4
|
+
|
|
5
|
+
> *In theater, the **prop master** sources every prop, sets it out before the scene, and collects it afterwards, so each actor finds exactly what they need at the moment they need it. The audience never sees them, but without them, the show doesn't happen.*
|
|
6
|
+
|
|
7
|
+
**Propmaster** does the same for your [Playwright](https://playwright.dev/) tests. It sets up the infrastructure fixtures — API clients (REST, GraphQL, gRPC, WebSocket/SSE), databases, message queues, caches, mobile devices, OTP — so your tests can focus on the performance itself.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
An extension toolkit for [Playwright Test](https://playwright.dev/) that adds ready-to-use fixtures for API, database, messaging, cache, mobile, and OTP testing. You keep your existing Playwright setup — Propmaster just gives you more fixtures to work with.
|
|
12
|
+
|
|
13
|
+
📖 **Documentation:** [propmaster.dev](https://propmaster.dev/)
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Playwright is a peer dependency — you bring your own version
|
|
19
|
+
npm install --save-dev @playwright/test @inluxc/propmaster
|
|
20
|
+
|
|
21
|
+
# Then the driver for each fixture you use (all optional), e.g.:
|
|
22
|
+
npm install --save-dev openapi-client-axios pg kafkajs
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
| Fixture | Install |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `openApiClient` | `openapi-client-axios` (`js-yaml` too, for YAML spec files; `ajv` and `ajv-formats` for contract checks) |
|
|
28
|
+
| `graphqlClient` | `graphql-request graphql` |
|
|
29
|
+
| `grpcClient` | `@grpc/grpc-js @grpc/proto-loader` |
|
|
30
|
+
| `realtimeClient` | `ws` (WebSocket; SSE needs nothing) |
|
|
31
|
+
| `databaseClient` | `pg` (PostgreSQL), `mysql2` (MySQL), `mssql` (MSSQL) or `better-sqlite3` (SQLite) |
|
|
32
|
+
| `mongoDbClient` | `mongodb` |
|
|
33
|
+
| `neo4jClient` | `neo4j-driver` |
|
|
34
|
+
| `cassandraClient` | `cassandra-driver` |
|
|
35
|
+
| `clickHouseClient` | `@clickhouse/client` |
|
|
36
|
+
| `kafkaClient` | `kafkajs` (or `@confluentinc/kafka-javascript` with `PW_KAFKA_DRIVER=confluent`) |
|
|
37
|
+
| `amqpClient` | `amqplib` |
|
|
38
|
+
| `s3Client` | `@aws-sdk/client-s3` |
|
|
39
|
+
| `sqsClient` | `@aws-sdk/client-sqs` (`@aws-sdk/client-sns` too, for topics) |
|
|
40
|
+
| `dynamoDbClient` | `@aws-sdk/client-dynamodb`, `@aws-sdk/lib-dynamodb` |
|
|
41
|
+
| `searchClient` | nothing (uses `fetch`); needs Elasticsearch or OpenSearch |
|
|
42
|
+
| `redisClient` | `ioredis` |
|
|
43
|
+
| `otpClient` | `otplib` |
|
|
44
|
+
| `inboxClient` | nothing (uses `fetch`); needs a [Mailpit](https://mailpit.axllent.org/) server |
|
|
45
|
+
| `mockServer` | nothing (uses `fetch`); needs a [WireMock](https://wiremock.org/) server |
|
|
46
|
+
| `appiumDriver` | `webdriverio` (`gadsHub` needs nothing extra) |
|
|
47
|
+
| `container: true` on any backend ([Testcontainers](https://propmaster.dev/testcontainers)) | `testcontainers` |
|
|
48
|
+
|
|
49
|
+
A fixture whose driver is missing fails with a `MissingPackageError` naming the package to install. Propmaster has no runtime dependencies of its own.
|
|
50
|
+
|
|
51
|
+
## How It Works
|
|
52
|
+
|
|
53
|
+
Propmaster exports an extended `test` object built on top of `@playwright/test`. All standard Playwright fixtures (`page`, `request`, `context`, etc.) remain available. The package simply layers additional fixtures on top:
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
// Instead of:
|
|
57
|
+
import { test, expect } from '@playwright/test';
|
|
58
|
+
|
|
59
|
+
// Use:
|
|
60
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
61
|
+
|
|
62
|
+
// You still have access to `page`, `request`, etc.
|
|
63
|
+
test('browser test still works', async ({ page }) => {
|
|
64
|
+
await page.goto('https://example.com');
|
|
65
|
+
await expect(page).toHaveTitle(/Example/);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// Plus new fixtures:
|
|
69
|
+
test('api test with OpenAPI client', async ({ openApiClient }) => {
|
|
70
|
+
const { client } = openApiClient;
|
|
71
|
+
const res = await (client as any).listUsers();
|
|
72
|
+
expect(res.status).toBe(200);
|
|
73
|
+
});
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Project Layout
|
|
79
|
+
|
|
80
|
+
`npx propmaster init` scaffolds one folder per test type, each run as its own Playwright project from a single root config:
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
tests/
|
|
84
|
+
├── api/ # REST / GraphQL: no browser, device or service → --project=api
|
|
85
|
+
├── integration/ # needs a database, broker or cache → --project=integration
|
|
86
|
+
├── e2e/ # browser user journeys → --project='e2e-*'
|
|
87
|
+
├── mobile/ # Appium / GADS → --project=mobile-android
|
|
88
|
+
└── support/ # page objects, fixtures, data, helpers
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Already have tests? `init` moves nothing. `npx propmaster organize` shows where each test belongs by the fixtures it uses, and `--apply` moves them with `git mv` and fixes their imports. See [Project Layout](docs/guide/project-layout.md).
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Available Fixtures
|
|
96
|
+
|
|
97
|
+
| Fixture | Type | What it does | Docs |
|
|
98
|
+
|---------|------|--------------|------|
|
|
99
|
+
| `openApiClient` | `OpenApiClient` | Typed HTTP client generated from your OpenAPI spec | [Setup & Usage](docs/openapi-fixture.md) |
|
|
100
|
+
| `databaseClient` | `DatabaseClient` | Multi-dialect DB client (PostgreSQL, MySQL, MSSQL, SQLite) | [Setup & Usage](docs/database-fixture.md) |
|
|
101
|
+
| `kafkaClient` | `KafkaClient` | Kafka producer/consumer | [Setup & Usage](docs/kafka-fixture.md) |
|
|
102
|
+
| `amqpClient` | `AmqpClient` | RabbitMQ / AMQP: publish, listen on an exchange, consume, purge | [Setup & Usage](docs/amqp-fixture.md) |
|
|
103
|
+
| `s3Client` | `S3Client` | S3 objects under a per-test prefix: write, read, list, wait for a file | [Setup & Usage](docs/aws-fixture.md) |
|
|
104
|
+
| `sqsClient` | `SqsClient` | SQS send/receive/purge, SNS publish and listen on a topic | [Setup & Usage](docs/aws-fixture.md) |
|
|
105
|
+
| `dynamoDbClient` | `DynamoDbClient` | DynamoDB items as plain objects: put/get/update/query/scan, wait for an item; writes undone after the test | [Setup & Usage](docs/dynamodb-fixture.md) |
|
|
106
|
+
| `searchClient` | `SearchClient` | Elasticsearch / OpenSearch: index, search, count, wait for documents under a per-test index prefix | [Setup & Usage](docs/search-fixture.md) |
|
|
107
|
+
| `redisClient` | `RedisClient` | Redis client with pub/sub | [Setup & Usage](docs/redis-fixture.md) |
|
|
108
|
+
| `mongoDbClient` | `MongoDbClient` | MongoDB CRUD and aggregation client | [Setup & Usage](docs/mongodb-fixture.md) |
|
|
109
|
+
| `neo4jClient` | `Neo4jClient` | Neo4j Cypher reads, writes and transactions | [Setup & Usage](docs/neo4j-fixture.md) |
|
|
110
|
+
| `cassandraClient` | `CassandraClient` | Cassandra / ScyllaDB: parameterized CQL, rows as plain objects, wait for a row; inserts undone after the test | [Setup & Usage](docs/cassandra-fixture.md) |
|
|
111
|
+
| `clickHouseClient` | `ClickHouseClient` | ClickHouse: parameterized SQL over HTTP, 64-bit integers as numbers, wait for rows a pipeline writes; inserts deleted after the test | [Setup & Usage](docs/clickhouse-fixture.md) |
|
|
112
|
+
| `graphqlClient` | `GraphQLClient` | GraphQL query/mutation client | [Setup & Usage](docs/graphql-fixture.md) |
|
|
113
|
+
| `grpcClient` | `GrpcClient` | gRPC unary and streaming calls from .proto files or server reflection, with status codes, metadata, deadlines and TLS | [Setup & Usage](docs/grpc-fixture.md) |
|
|
114
|
+
| `realtimeClient` | `RealtimeClient` | WebSocket and SSE: connect, send, wait for a matching message, the HTTP status of a refused connection | [Setup & Usage](docs/realtime-fixture.md) |
|
|
115
|
+
| `otpClient` | `OtpClient` | TOTP/HOTP generation and verification for 2FA testing | [Setup & Usage](docs/otp-fixture.md) |
|
|
116
|
+
| `inboxClient` | `InboxClient` | Reads the email your app sends (Mailpit): codes, verification and reset links | [Setup & Usage](docs/inbox-fixture.md) |
|
|
117
|
+
| `mockServer` | `MockServer` | Stubs the third-party APIs your backend calls (WireMock) and verifies the calls it made | [Setup & Usage](docs/mock-server-fixture.md) |
|
|
118
|
+
| `testData` | `TestData` | Factories with values unique across workers, plus custom cleanups; data inserted through the clients is removed after each test, pass or fail | [Test Data](docs/test-data.md) |
|
|
119
|
+
| `authToken`, `authHeaders`, `authRequest` | `string`, headers, `APIRequestContext` | OAuth/OIDC tokens per role, refreshed before expiry and sent by `openApiClient`/`graphqlClient`; `authRole` also picks a saved browser login | [Tokens & Roles](docs/auth.md) |
|
|
120
|
+
| `appiumDriver` | `AppiumDriver` (WebdriverIO `Browser`) | Appium session on any Appium server, grid, cloud farm or [GADS](https://github.com/shamanec/GADS) hub; ended on teardown | [Setup & Usage](docs/appium-fixture.md) |
|
|
121
|
+
| `gadsHub` | `GadsHubClient` | GADS hub status and device listing | [Setup & Usage](docs/appium-fixture.md#gads-preset) |
|
|
122
|
+
|
|
123
|
+
All standard Playwright fixtures (`page`, `request`, `context`, `browser`, `browserName`) remain fully available.
|
|
124
|
+
|
|
125
|
+
> For creating your own fixtures, see [Custom Fixtures](docs/custom-fixtures.md).
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Usage Examples
|
|
130
|
+
|
|
131
|
+
### Mixing Playwright's `page` with Propmaster fixtures
|
|
132
|
+
|
|
133
|
+
```typescript
|
|
134
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
135
|
+
|
|
136
|
+
test.describe('Full-stack test', () => {
|
|
137
|
+
test('create user via API, verify in browser', async ({ openApiClient, page }) => {
|
|
138
|
+
// Use the API fixture to create data
|
|
139
|
+
const { client } = openApiClient;
|
|
140
|
+
const res = await (client as any).createUser(null, {
|
|
141
|
+
name: 'Alice',
|
|
142
|
+
email: 'alice@test.com',
|
|
143
|
+
});
|
|
144
|
+
expect(res.status).toBe(201);
|
|
145
|
+
|
|
146
|
+
// Use Playwright's page fixture to verify in the UI
|
|
147
|
+
await page.goto('/admin/users');
|
|
148
|
+
await expect(page.getByText('alice@test.com')).toBeVisible();
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### OpenAPI Client
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
157
|
+
|
|
158
|
+
test.describe('Pet Store API', () => {
|
|
159
|
+
test('list all pets', async ({ openApiClient }) => {
|
|
160
|
+
const { client } = openApiClient;
|
|
161
|
+
const response = await (client as any).listPets();
|
|
162
|
+
|
|
163
|
+
expect(response.status).toBe(200);
|
|
164
|
+
expect(response.data).toBeInstanceOf(Array);
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
test('create and fetch a pet', async ({ openApiClient }) => {
|
|
168
|
+
const { client } = openApiClient;
|
|
169
|
+
|
|
170
|
+
const created = await (client as any).createPet(null, {
|
|
171
|
+
name: 'Buddy',
|
|
172
|
+
species: 'dog',
|
|
173
|
+
});
|
|
174
|
+
expect(created.status).toBe(201);
|
|
175
|
+
|
|
176
|
+
const fetched = await (client as any).getPet({ petId: created.data.id });
|
|
177
|
+
expect(fetched.data.name).toBe('Buddy');
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### gRPC Client
|
|
183
|
+
|
|
184
|
+
```typescript
|
|
185
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
186
|
+
|
|
187
|
+
test.describe('Orders service', () => {
|
|
188
|
+
test('an unknown order is NOT_FOUND', async ({ grpcClient }) => {
|
|
189
|
+
// No .proto files needed when the server offers reflection
|
|
190
|
+
const order = await grpcClient.call('orders.v1.Orders/CreateOrder', { sku: 'p-1', quantity: 2 });
|
|
191
|
+
expect(order.status).toBe('PENDING');
|
|
192
|
+
|
|
193
|
+
const missing = await grpcClient.invoke('orders.v1.Orders/GetOrder', { id: 'nope' });
|
|
194
|
+
expect(missing.codeName).toBe('NOT_FOUND');
|
|
195
|
+
|
|
196
|
+
const updates = await grpcClient.serverStream('orders.v1.Orders/WatchOrder', { id: order.id }, { limit: 2 });
|
|
197
|
+
expect(updates).toHaveLength(2);
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### WebSocket & SSE Client
|
|
203
|
+
|
|
204
|
+
```typescript
|
|
205
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
206
|
+
|
|
207
|
+
test('an order update reaches the live feed', async ({ realtimeClient, openApiClient }) => {
|
|
208
|
+
const ws = await realtimeClient.connect('/live'); // relative to PW_REALTIME_URL
|
|
209
|
+
await ws.send({ op: 'subscribe', orderId });
|
|
210
|
+
await ws.waitForMessage({ op: 'subscribed', orderId }); // a JSON subset
|
|
211
|
+
|
|
212
|
+
await (openApiClient.client as any).shipOrder({ id: orderId });
|
|
213
|
+
const update = await ws.waitForMessage({ type: 'order.shipped', orderId });
|
|
214
|
+
expect(update.json()).toMatchObject({ status: 'shipped' });
|
|
215
|
+
|
|
216
|
+
const sse = await realtimeClient.subscribe('/orders/events');
|
|
217
|
+
await sse.waitForMessage({ orderId }, { event: 'order.shipped' });
|
|
218
|
+
|
|
219
|
+
await expect(realtimeClient.connect('/live', { auth: false })).rejects.toMatchObject({ status: 401 });
|
|
220
|
+
});
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Database Client
|
|
224
|
+
|
|
225
|
+
```typescript
|
|
226
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
227
|
+
|
|
228
|
+
test.describe('Database Operations', () => {
|
|
229
|
+
test('query users', async ({ databaseClient }) => {
|
|
230
|
+
const rows = await databaseClient.query<{ id: number; name: string }>(
|
|
231
|
+
'SELECT id, name FROM users WHERE active = $1',
|
|
232
|
+
[true]
|
|
233
|
+
);
|
|
234
|
+
|
|
235
|
+
expect(rows.length).toBeGreaterThan(0);
|
|
236
|
+
expect(rows[0]).toHaveProperty('name');
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
test('insert a record', async ({ databaseClient }) => {
|
|
240
|
+
const result = await databaseClient.execute(
|
|
241
|
+
'INSERT INTO users (name, email) VALUES ($1, $2)',
|
|
242
|
+
['Bob', 'bob@example.com']
|
|
243
|
+
);
|
|
244
|
+
|
|
245
|
+
expect(result.affectedRows).toBe(1);
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Kafka Client
|
|
251
|
+
|
|
252
|
+
```typescript
|
|
253
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
254
|
+
|
|
255
|
+
test.describe('Kafka Messaging', () => {
|
|
256
|
+
test('produce and consume a message', async ({ kafkaClient }) => {
|
|
257
|
+
const payload = { userId: 42, action: 'signup' };
|
|
258
|
+
|
|
259
|
+
await kafkaClient.produce('user-events', [
|
|
260
|
+
{ key: 'user-42', value: JSON.stringify(payload) },
|
|
261
|
+
]);
|
|
262
|
+
|
|
263
|
+
const messages = await kafkaClient.consume('user-events', {
|
|
264
|
+
count: 1,
|
|
265
|
+
timeout: 10000,
|
|
266
|
+
fromBeginning: false,
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
expect(messages).toHaveLength(1);
|
|
270
|
+
expect(JSON.parse(messages[0].value)).toMatchObject(payload);
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### RabbitMQ (AMQP) Client
|
|
276
|
+
|
|
277
|
+
```typescript
|
|
278
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
279
|
+
|
|
280
|
+
test.describe('Order events', () => {
|
|
281
|
+
test('placing an order publishes order.created', async ({ amqpClient, openApiClient }) => {
|
|
282
|
+
// Listen first: a temporary queue bound to the exchange, so the app's own queues keep their copies
|
|
283
|
+
const listener = await amqpClient.listen('orders', 'order.*');
|
|
284
|
+
|
|
285
|
+
const { data: order } = await (openApiClient.client as any).createOrder(null, { sku: 'SKU-1' });
|
|
286
|
+
|
|
287
|
+
const event = await listener.waitForMessage((m) => m.json<{ orderId: string }>().orderId === order.id);
|
|
288
|
+
expect(event.routingKey).toBe('order.created');
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### AWS Clients (S3, SQS, SNS)
|
|
294
|
+
|
|
295
|
+
```typescript
|
|
296
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
297
|
+
|
|
298
|
+
test.describe('Exports', () => {
|
|
299
|
+
test('an export writes its file and announces it', async ({ s3Client, sqsClient, openApiClient }) => {
|
|
300
|
+
// Listen first: a temporary queue subscribed to the topic, so the app's own subscribers keep their copies
|
|
301
|
+
const listener = await sqsClient.listen('exports-events');
|
|
302
|
+
const key = s3Client.key('orders.csv'); // under the test's own prefix, deleted afterwards
|
|
303
|
+
|
|
304
|
+
await (openApiClient.client as any).startExport(null, { bucket: s3Client.bucket, key });
|
|
305
|
+
|
|
306
|
+
const file = await s3Client.waitForObject(key, { timeout: 30_000 });
|
|
307
|
+
expect(file.text()).toContain('id,total');
|
|
308
|
+
await listener.waitForMessage((m) => m.json<{ key: string }>().key === key);
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
Runs on Moto (`docker compose -f compose.test.yaml up -d --wait moto`), LocalStack or a real test account.
|
|
314
|
+
|
|
315
|
+
### DynamoDB Client
|
|
316
|
+
|
|
317
|
+
```typescript
|
|
318
|
+
test('placing an order stores it', async ({ dynamoDbClient, openApiClient, testData }) => {
|
|
319
|
+
const customerId = testData.unique('customer');
|
|
320
|
+
const { data } = await (openApiClient.client as any).placeOrder(null, { customerId, sku: 'A-1' });
|
|
321
|
+
|
|
322
|
+
// Plain objects in and out; conditions too. Polls until the app has written it.
|
|
323
|
+
const order = await dynamoDbClient.waitForItem('orders', { customerId, orderedAt: data.orderedAt });
|
|
324
|
+
expect(order).toMatchObject({ status: 'open' });
|
|
325
|
+
const open = await dynamoDbClient.query('orders', { status: 'open' }, { index: 'byStatus', filter: { customerId } });
|
|
326
|
+
expect(open).toHaveLength(1);
|
|
327
|
+
|
|
328
|
+
await dynamoDbClient.put('settings', { tenant: customerId, plan: 'pro' }); // deleted again after the test
|
|
329
|
+
});
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Search Client (Elasticsearch, OpenSearch)
|
|
333
|
+
|
|
334
|
+
```typescript
|
|
335
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
336
|
+
|
|
337
|
+
test.describe('Catalogue search', () => {
|
|
338
|
+
test('a new product becomes searchable', async ({ searchClient, openApiClient }) => {
|
|
339
|
+
const sku = `sku-${Date.now()}`;
|
|
340
|
+
await (openApiClient.client as any).createProduct(null, { sku, title: 'Trail running shoes' });
|
|
341
|
+
|
|
342
|
+
// Indexing is eventually consistent: poll instead of sleeping
|
|
343
|
+
const hit = await searchClient.waitForDocument('products', { term: { sku } });
|
|
344
|
+
expect(hit.source).toMatchObject({ title: 'Trail running shoes' });
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
Indices from `searchClient.indexName()` are the test's own and deleted afterwards; writes to other indices are undone.
|
|
350
|
+
|
|
351
|
+
### Redis Client
|
|
352
|
+
|
|
353
|
+
```typescript
|
|
354
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
355
|
+
|
|
356
|
+
test.describe('Redis Cache', () => {
|
|
357
|
+
test('set and get a value', async ({ redisClient }) => {
|
|
358
|
+
await redisClient.set('session:abc', JSON.stringify({ userId: 1 }), 60);
|
|
359
|
+
|
|
360
|
+
const value = await redisClient.get('session:abc');
|
|
361
|
+
expect(JSON.parse(value!)).toEqual({ userId: 1 });
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
test('pub/sub messaging', async ({ redisClient }) => {
|
|
365
|
+
const messagePromise = redisClient.subscribe('notifications', { timeout: 5000 });
|
|
366
|
+
await redisClient.publish('notifications', 'Hello!');
|
|
367
|
+
|
|
368
|
+
const received = await messagePromise;
|
|
369
|
+
expect(received).toBe('Hello!');
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
### Neo4j Client
|
|
375
|
+
|
|
376
|
+
```typescript
|
|
377
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
378
|
+
|
|
379
|
+
test.describe('Social Graph', () => {
|
|
380
|
+
test('create and traverse a relationship', async ({ neo4jClient }) => {
|
|
381
|
+
const counters = await neo4jClient.write(
|
|
382
|
+
'CREATE (:Person {name: $a})-[:KNOWS]->(:Person {name: $b})',
|
|
383
|
+
{ a: 'Alice', b: 'Bob' },
|
|
384
|
+
);
|
|
385
|
+
expect(counters.relationshipsCreated).toBe(1);
|
|
386
|
+
|
|
387
|
+
const rows = await neo4jClient.run<{ friend: string }>(
|
|
388
|
+
'MATCH (:Person {name: $name})-[:KNOWS]->(f) RETURN f.name AS friend',
|
|
389
|
+
{ name: 'Alice' },
|
|
390
|
+
);
|
|
391
|
+
expect(rows).toEqual([{ friend: 'Bob' }]);
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### Cassandra / ScyllaDB Client
|
|
397
|
+
|
|
398
|
+
```typescript
|
|
399
|
+
test('placing an order stores it', async ({ cassandraClient, openApiClient, testData }) => {
|
|
400
|
+
const customerId = testData.unique('customer');
|
|
401
|
+
await (openApiClient.client as any).placeOrder(null, { customerId, sku: 'A-1' });
|
|
402
|
+
|
|
403
|
+
// Parameterized CQL; rows as plain objects. Polls until the app has written it.
|
|
404
|
+
const order = await cassandraClient.waitForRow('SELECT * FROM orders WHERE customer_id = ?', [customerId]);
|
|
405
|
+
expect(order).toMatchObject({ status: 'open' });
|
|
406
|
+
|
|
407
|
+
await cassandraClient.insert('settings', { tenant: customerId, plan: 'pro' }); // deleted again after the test
|
|
408
|
+
});
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
Runs on ScyllaDB (`docker compose -f compose.test.yaml up -d --wait scylla`), Cassandra, or a test cluster.
|
|
412
|
+
|
|
413
|
+
### ClickHouse Client
|
|
414
|
+
|
|
415
|
+
```typescript
|
|
416
|
+
test('a purchase reaches the analytics tables', async ({ clickHouseClient, openApiClient, testData }) => {
|
|
417
|
+
const userId = testData.unique('user');
|
|
418
|
+
await (openApiClient.client as any).createOrder(null, { userId, sku: 'A-1', qty: 2 });
|
|
419
|
+
|
|
420
|
+
// Typed {name:Type} parameters; count() and UInt64 come back as numbers. Polls until the pipeline has written it.
|
|
421
|
+
const [stats] = await clickHouseClient.waitForRows<{ n: number }>(
|
|
422
|
+
'SELECT count() AS n FROM events WHERE user_id = {user:String}', { user: userId }, { until: ([r]) => r.n === 1 },
|
|
423
|
+
);
|
|
424
|
+
expect(stats.n).toBe(1);
|
|
425
|
+
|
|
426
|
+
await clickHouseClient.insert('events', { id: testData.unique('ev'), user_id: userId, kind: 'view', at: new Date() }); // deleted after the test
|
|
427
|
+
});
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
Runs on ClickHouse from the compose file (`docker compose -f compose.test.yaml up -d --wait clickhouse`), a container (`PW_CLICKHOUSE_CONTAINER=true`), or a test server.
|
|
431
|
+
|
|
432
|
+
### OTP Client (2FA/MFA Testing)
|
|
433
|
+
|
|
434
|
+
```typescript
|
|
435
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
436
|
+
|
|
437
|
+
test.describe('Two-Factor Authentication', () => {
|
|
438
|
+
test('generate and verify TOTP', async ({ otpClient }) => {
|
|
439
|
+
const secret = otpClient.generateSecret();
|
|
440
|
+
const token = await otpClient.generateTotp(secret);
|
|
441
|
+
|
|
442
|
+
expect(token).toHaveLength(6);
|
|
443
|
+
expect(await otpClient.verifyTotp(token, secret)).toBe(true);
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
test('generate key URI for QR provisioning', async ({ otpClient }) => {
|
|
447
|
+
const secret = otpClient.generateSecret();
|
|
448
|
+
const uri = otpClient.generateKeyUri('user@example.com', 'MyApp', secret);
|
|
449
|
+
|
|
450
|
+
expect(uri).toContain('otpauth://totp/');
|
|
451
|
+
expect(uri).toContain('MyApp');
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
### Mobile Testing (Appium)
|
|
457
|
+
|
|
458
|
+
`appiumDriver` is a WebdriverIO `Browser` on an Appium session — local Appium, a grid, a cloud farm, or a GADS device farm (set `appium.gads`):
|
|
459
|
+
|
|
460
|
+
```typescript
|
|
461
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
462
|
+
|
|
463
|
+
test.describe('Mobile App - Login', () => {
|
|
464
|
+
test('user can log in', async ({ appiumDriver }) => {
|
|
465
|
+
await appiumDriver.url('myapp://login');
|
|
466
|
+
|
|
467
|
+
await appiumDriver.$('~email').setValue('user@example.com');
|
|
468
|
+
await appiumDriver.$('~password').setValue('securepass123');
|
|
469
|
+
await appiumDriver.$('~sign-in').click();
|
|
470
|
+
|
|
471
|
+
await expect(appiumDriver.$('~welcome').isDisplayed()).resolves.toBe(true);
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
### Browser Testing (standard Playwright — unchanged)
|
|
477
|
+
|
|
478
|
+
```typescript
|
|
479
|
+
import { test, expect } from '@inluxc/propmaster';
|
|
480
|
+
|
|
481
|
+
test.describe('Web App', () => {
|
|
482
|
+
test('loads the dashboard', async ({ page }) => {
|
|
483
|
+
await page.goto('/dashboard');
|
|
484
|
+
await expect(page.getByRole('heading', { name: 'Dashboard' })).toBeVisible();
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
---
|
|
490
|
+
|
|
491
|
+
## Extending Further — Custom Fixtures
|
|
492
|
+
|
|
493
|
+
You can layer your own fixtures on top of Propmaster the same way you would with `@playwright/test`:
|
|
494
|
+
|
|
495
|
+
```typescript
|
|
496
|
+
// my-fixtures.ts
|
|
497
|
+
import { test as base } from '@inluxc/propmaster';
|
|
498
|
+
|
|
499
|
+
export const test = base.extend<{ authToken: string }>({
|
|
500
|
+
authToken: async ({ openApiClient }, use) => {
|
|
501
|
+
// Use Propmaster's openApiClient to get a token
|
|
502
|
+
const { client } = openApiClient;
|
|
503
|
+
const res = await (client as any).login(null, {
|
|
504
|
+
email: 'test@example.com',
|
|
505
|
+
password: 'password',
|
|
506
|
+
});
|
|
507
|
+
await use(res.data.token);
|
|
508
|
+
},
|
|
509
|
+
});
|
|
510
|
+
|
|
511
|
+
export { expect } from '@inluxc/propmaster';
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
```typescript
|
|
515
|
+
// my-test.spec.ts
|
|
516
|
+
import { test, expect } from './my-fixtures';
|
|
517
|
+
|
|
518
|
+
test('authenticated request', async ({ authToken, page }) => {
|
|
519
|
+
await page.setExtraHTTPHeaders({ Authorization: `Bearer ${authToken}` });
|
|
520
|
+
await page.goto('/protected');
|
|
521
|
+
await expect(page).toHaveTitle(/Protected/);
|
|
522
|
+
});
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
---
|
|
526
|
+
|
|
527
|
+
## Configuration
|
|
528
|
+
|
|
529
|
+
### Environment Variables
|
|
530
|
+
|
|
531
|
+
All config uses the `PW_` prefix. Set `PW_ENVIRONMENT` to load the matching `.env.{environment}` file:
|
|
532
|
+
|
|
533
|
+
```bash
|
|
534
|
+
PW_ENVIRONMENT=dev npx playwright test
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
| Variable | Purpose |
|
|
538
|
+
|----------|---------|
|
|
539
|
+
| `PW_ENVIRONMENT` | Active environment (`local`, `dev`, `test`, `stg`, `prod`) |
|
|
540
|
+
| `PW_OPENAPI_SPEC_PATH` | Path or URL to OpenAPI spec |
|
|
541
|
+
| `PW_OPENAPI_BASE_URL` | API base URL |
|
|
542
|
+
| `PW_OPENAPI_VALIDATE_RESPONSES` / `PW_OPENAPI_VALIDATE_REQUESTS` | `true` or `warn`: check calls against the spec |
|
|
543
|
+
| `PW_DB_TYPE` | `postgresql`, `mysql`, `mssql`, `sqlite` |
|
|
544
|
+
| `PW_DB_HOST` / `PW_DB_PORT` / `PW_DB_NAME` | Database connection |
|
|
545
|
+
| `PW_DB_USERNAME` / `PW_DB_PASSWORD` | Database credentials |
|
|
546
|
+
| `PW_KAFKA_BROKERS` | Comma-separated broker list |
|
|
547
|
+
| `PW_KAFKA_DRIVER` | `kafkajs` (default) or `confluent` (Confluent's librdkafka client) |
|
|
548
|
+
| `PW_AMQP_URL` | RabbitMQ / AMQP broker URL (`amqp://user:pass@host:5672/vhost`), or `PW_AMQP_HOST`, `PW_AMQP_PORT`, `PW_AMQP_USERNAME`, `PW_AMQP_PASSWORD`, `PW_AMQP_VHOST` |
|
|
549
|
+
| `PW_AWS_ENDPOINT` / `PW_AWS_REGION` / `PW_AWS_S3_BUCKET` | AWS emulator URL (Moto, LocalStack), region and default bucket; credentials from `PW_AWS_ACCESS_KEY_ID`/`PW_AWS_SECRET_ACCESS_KEY`, `PW_AWS_PROFILE` or the standard AWS chain |
|
|
550
|
+
| `PW_AWS_DYNAMODB_TABLE_PREFIX` | Root of the per-test table names from `dynamoDbClient.tableName()` (default `propmaster-tests-`) |
|
|
551
|
+
| `PW_SEARCH_URL` / `PW_SEARCH_USERNAME` / `PW_SEARCH_PASSWORD` / `PW_SEARCH_API_KEY` | Elasticsearch / OpenSearch cluster |
|
|
552
|
+
| `PW_GRPC_ADDRESS` / `PW_GRPC_PROTO_FILES` / `PW_GRPC_AUTH_TOKEN` | gRPC server (`grpcs://` for TLS), its .proto files (leave out for server reflection) and token; TLS files in `PW_GRPC_TLS_CA`/`_CERT`/`_KEY` |
|
|
553
|
+
| `PW_REALTIME_URL` / `PW_REALTIME_AUTH_TOKEN` | Base URL for WebSocket and SSE connections (http(s) becomes ws(s)) and bearer token |
|
|
554
|
+
| `PW_REDIS_HOST` / `PW_REDIS_PORT` / `PW_REDIS_PASSWORD` | Redis connection |
|
|
555
|
+
| `PW_REDIS_KEY_PREFIX` | Key prefix for test isolation |
|
|
556
|
+
| `PW_NEO4J_URI` | Neo4j connection URI (`bolt://` or `neo4j://`) |
|
|
557
|
+
| `PW_NEO4J_USERNAME` / `PW_NEO4J_PASSWORD` | Neo4j credentials |
|
|
558
|
+
| `PW_NEO4J_DATABASE` | Neo4j database (default: server default) |
|
|
559
|
+
| `PW_CASSANDRA_CONTACT_POINTS` / `PW_CASSANDRA_LOCAL_DC` / `PW_CASSANDRA_KEYSPACE` | Cassandra / ScyllaDB nodes, data center and keyspace (`PW_CASSANDRA_CREATE_KEYSPACE=true` creates it); `PW_CASSANDRA_USERNAME`/`PW_CASSANDRA_PASSWORD` |
|
|
560
|
+
| `PW_CLICKHOUSE_URL` / `PW_CLICKHOUSE_DATABASE` | ClickHouse HTTP URL and database (`PW_CLICKHOUSE_CREATE_DATABASE=true` creates it); `PW_CLICKHOUSE_USERNAME`/`PW_CLICKHOUSE_PASSWORD` |
|
|
561
|
+
| `PW_APPIUM_SERVER_URL` | Appium server (or GADS hub) URL |
|
|
562
|
+
| `PW_APPIUM_PLATFORM` / `PW_APPIUM_UDID` / `PW_APPIUM_DEVICE_NAME` | Device selection |
|
|
563
|
+
| `PW_APPIUM_CAPABILITIES` | Extra capabilities as a JSON object |
|
|
564
|
+
| `PW_GADS_CLIENT_SECRET` / `PW_GADS_QUEUE_TIMEOUT` | GADS preset: client secret and device queue wait |
|
|
565
|
+
| `PW_OTP_SECRET` | Base32-encoded OTP secret |
|
|
566
|
+
| `PW_OTP_DIGITS` | Token length (default: 6) |
|
|
567
|
+
| `PW_OTP_PERIOD` | TOTP time step in seconds (default: 30) |
|
|
568
|
+
|
|
569
|
+
### `playwright.config.ts` — works as normal
|
|
570
|
+
|
|
571
|
+
```typescript
|
|
572
|
+
import { defineConfig } from '@playwright/test';
|
|
573
|
+
|
|
574
|
+
export default defineConfig({
|
|
575
|
+
use: {
|
|
576
|
+
baseURL: 'https://api.example.com',
|
|
577
|
+
},
|
|
578
|
+
projects: [
|
|
579
|
+
{ name: 'api', testMatch: '**/api/**/*.spec.ts' },
|
|
580
|
+
{ name: 'browser', testMatch: '**/browser/**/*.spec.ts' },
|
|
581
|
+
],
|
|
582
|
+
});
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
---
|
|
586
|
+
|
|
587
|
+
## Secrets Management
|
|
588
|
+
|
|
589
|
+
Set `secrets.provider` in `environments.json` to `aws`, `vault`, `openbao`, `azure`, `gitlab` or `env-file`, and map secret keys to config fields with `keyMappings`. Or use the manager directly:
|
|
590
|
+
|
|
591
|
+
```typescript
|
|
592
|
+
import { SecretsManager, OpenBaoSecretsProvider } from '@inluxc/propmaster';
|
|
593
|
+
|
|
594
|
+
const manager = new SecretsManager();
|
|
595
|
+
// url/token fall back to PW_OPENBAO_* → BAO_* → VAULT_* env vars
|
|
596
|
+
manager.registerProvider(new OpenBaoSecretsProvider({ mountPath: 'secret/data/playwright' }));
|
|
597
|
+
const dbPassword = await manager.getSecret('db-password', 'openbao');
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
See [docs/secrets.md](docs/secrets.md) for every provider's options.
|
|
601
|
+
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
## Generating API Tests
|
|
605
|
+
|
|
606
|
+
`npx propmaster generate openapi` writes a starting set of tests from your OpenAPI spec: one file per tag in `tests/api/`, a test per operation and documented status code, with TestCaseIDs from `next-id` and `test.step()` blocks. Requests are built from the schema examples. 400 tests send a body without its required fields, and 404 tests use IDs that don't exist. Status codes the generator can't provoke become `test.fixme` with a TODO. It never overwrites a file; run it again after the spec changes to get tests for just the new operations. See [docs/guide/generate-api-tests.md](docs/guide/generate-api-tests.md).
|
|
607
|
+
|
|
608
|
+
---
|
|
609
|
+
|
|
610
|
+
## MCP Server for Coding Agents
|
|
611
|
+
|
|
612
|
+
`npx propmaster mcp` lets a coding agent (Claude Code, VS Code, Cursor, ...) see the backends while it writes or debugs tests. It can query the database, read MongoDB, Redis, Kafka and Neo4j, list the OpenAPI operations, and get the next free TestCaseID. It uses the project's `environments.json` and secrets, is read-only unless you pass `--allow-writes`, refuses production environments, and never shows credentials.
|
|
613
|
+
|
|
614
|
+
```bash
|
|
615
|
+
npx propmaster mcp setup # writes the config for Claude Code, VS Code, Cursor, Windsurf or Zed (menu)
|
|
616
|
+
npx propmaster mcp setup --check # starts the server as the editor would and lists its tools
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
See [docs/mcp-server.md](docs/mcp-server.md) for every tool and each editor's setup.
|
|
620
|
+
|
|
621
|
+
---
|
|
622
|
+
|
|
623
|
+
## Flaky Tests and Quarantine
|
|
624
|
+
|
|
625
|
+
The Propmaster reporter keeps each test's outcome across CI runs, keyed on its TestCaseID. `npx propmaster flaky` then ranks tests by how often they were flaky or failed. A known-flaky test can be quarantined in `quarantine.json`, with an owner and an issue: it keeps running and reporting, but doesn't fail the build, and `propmaster check` warns when an entry gets old.
|
|
626
|
+
|
|
627
|
+
```typescript
|
|
628
|
+
// playwright.config.ts
|
|
629
|
+
reporter: [['list'], ['@inluxc/propmaster/reporter']], // writes .propmaster/test-history.json; cache it between CI runs
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
See [docs/flaky-tests.md](docs/flaky-tests.md).
|
|
633
|
+
|
|
634
|
+
---
|
|
635
|
+
|
|
636
|
+
## Coverage
|
|
637
|
+
|
|
638
|
+
`npx propmaster coverage` shows what the tests cover per layer of the pyramid (unit, integration, e2e): what each layer's tests touch (API operations, tables, topics, queues, routes, ...), the OpenAPI operations and status codes no test asserts, configured backends no test uses, tests that never ran or fail, and the code-coverage reports already in the project (LCOV, Istanbul, Cobertura, JaCoCo, Clover, OpenCover, Go, coverage.py, SimpleCov). The application can be in any language: its own tests in Python, Go, Java/Kotlin, C#, Ruby, PHP, Rust, Swift or Elixir count too. It reads files only. The MCP server has it as `coverage_report`, so an agent can weigh the gaps against the backends and the code before writing tests.
|
|
639
|
+
|
|
640
|
+
See [docs/coverage.md](docs/coverage.md).
|
|
641
|
+
|
|
642
|
+
---
|
|
643
|
+
|
|
644
|
+
## Running in CI
|
|
645
|
+
|
|
646
|
+
Integration tests run in GitHub Actions against real services started as containers. Each backend gets its own job, and all jobs run in parallel:
|
|
647
|
+
|
|
648
|
+
```yaml
|
|
649
|
+
test-redis:
|
|
650
|
+
runs-on: ubuntu-latest
|
|
651
|
+
container: node:24
|
|
652
|
+
services:
|
|
653
|
+
redis:
|
|
654
|
+
image: redis:7
|
|
655
|
+
options: --health-cmd "redis-cli ping" --health-interval 5s --health-retries 5
|
|
656
|
+
env:
|
|
657
|
+
CI: true
|
|
658
|
+
PW_REDIS_HOST: redis # the service name is the hostname
|
|
659
|
+
PW_REDIS_PORT: "6379"
|
|
660
|
+
steps:
|
|
661
|
+
- uses: actions/checkout@v4
|
|
662
|
+
- uses: ./.github/actions/npm-install # cached npm ci
|
|
663
|
+
- run: npx playwright test --project=integration-redis
|
|
664
|
+
```
|
|
665
|
+
|
|
666
|
+
See [docs/ci.md](docs/ci.md) for a job per backend (PostgreSQL, MySQL, MSSQL, SQLite, Redis, MongoDB, Neo4j, Cassandra/ScyllaDB, ClickHouse, Kafka, RabbitMQ, AWS, DynamoDB, Elasticsearch, OpenSearch, OpenAPI, GraphQL, gRPC, WebSocket/SSE, OTP, browsers), combining services in one job, and keeping CI fast.
|
|
667
|
+
|
|
668
|
+
No services to start at all: set `PW_<BACKEND>_CONTAINER=true` and each backend runs in a throwaway container started by the test run itself ([Testcontainers](docs/testcontainers.md)):
|
|
669
|
+
|
|
670
|
+
```bash
|
|
671
|
+
PW_DB_CONTAINER=true PW_KAFKA_CONTAINER=true npx playwright test --project=integration
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
Complete pipelines for other CI systems: [GitLab CI/CD](docs/ci-gitlab.md), [Jenkins](docs/ci-jenkins.md), [Azure Pipelines](docs/ci-azure-pipelines.md), [CircleCI](docs/ci-circleci.md) and [Bitbucket Pipelines](docs/ci-bitbucket.md). For anything else, or to run the same services locally, use [`compose.test.yaml`](compose.test.yaml):
|
|
675
|
+
|
|
676
|
+
```bash
|
|
677
|
+
docker compose -f compose.test.yaml up -d --wait postgres redis
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
---
|
|
681
|
+
|
|
682
|
+
## Publishing
|
|
683
|
+
|
|
684
|
+
```bash
|
|
685
|
+
npm run build
|
|
686
|
+
npm publish
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
## Changelog
|
|
690
|
+
|
|
691
|
+
What changed, newest first: [CHANGELOG.md](CHANGELOG.md), also on the site at [propmaster.dev/changelog](https://propmaster.dev/changelog).
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
## License
|
|
696
|
+
|
|
697
|
+
MIT
|