feat:Strengthen the testing framework
This commit is contained in:
20
package.json
20
package.json
@@ -52,6 +52,7 @@
|
||||
"check:test-route-coverage": "node scripts/guards/test-route-coverage-guard.mjs",
|
||||
"check:test-tasktype-coverage": "node scripts/guards/test-tasktype-coverage-guard.mjs",
|
||||
"check:test-behavior-quality": "node scripts/guards/test-behavior-quality-guard.mjs",
|
||||
"check:changed-test-impact": "node scripts/guards/changed-file-test-impact-guard.mjs",
|
||||
"check:test-behavior-route-coverage": "node scripts/guards/test-behavior-route-coverage-guard.mjs",
|
||||
"check:test-behavior-tasktype-coverage": "node scripts/guards/test-behavior-tasktype-coverage-guard.mjs",
|
||||
"check:test-coverage-guards": "npm run check:test-behavior-quality && npm run check:test-route-coverage && npm run check:test-tasktype-coverage && npm run check:test-behavior-route-coverage && npm run check:test-behavior-tasktype-coverage",
|
||||
@@ -71,21 +72,28 @@
|
||||
"test:billing:integration": "cross-env BILLING_TEST_BOOTSTRAP=1 vitest run tests/integration/billing",
|
||||
"test:billing:concurrency": "cross-env BILLING_TEST_BOOTSTRAP=1 vitest run tests/concurrency/billing",
|
||||
"test:billing:coverage": "cross-env BILLING_TEST_BOOTSTRAP=1 vitest run --coverage tests/unit/billing tests/integration/billing tests/concurrency/billing",
|
||||
"test:guards": "npm run check:api-handler && npm run check:image-reference-normalization && npm run check:task-submit-compensation && npm run check:no-api-direct-llm-call && npm run check:test-coverage-guards && npm run check:requirements-matrix && npm run check:locale-navigation",
|
||||
"test:guards": "npm run check:api-handler && npm run check:image-reference-normalization && npm run check:task-submit-compensation && npm run check:no-api-direct-llm-call && npm run check:test-coverage-guards && npm run check:changed-test-impact && npm run check:requirements-matrix && npm run check:locale-navigation",
|
||||
"test:unit:all": "cross-env BILLING_TEST_BOOTSTRAP=0 vitest run tests/unit",
|
||||
"test:integration:api": "cross-env BILLING_TEST_BOOTSTRAP=1 vitest run tests/integration/api",
|
||||
"test:integration:provider": "cross-env BILLING_TEST_BOOTSTRAP=0 vitest run tests/integration/provider",
|
||||
"test:integration:chain": "cross-env BILLING_TEST_BOOTSTRAP=1 vitest run tests/integration/chain",
|
||||
"test:integration:task": "cross-env BILLING_TEST_BOOTSTRAP=1 vitest run tests/integration/task",
|
||||
"test:system": "cross-env SYSTEM_TEST_BOOTSTRAP=1 vitest run tests/system",
|
||||
"test:regression:cases": "cross-env SYSTEM_TEST_BOOTSTRAP=1 vitest run tests/regression",
|
||||
"test:behavior:unit": "cross-env BILLING_TEST_BOOTSTRAP=0 vitest run tests/unit/helpers tests/unit/worker tests/unit/optimistic tests/unit/guards",
|
||||
"test:behavior:api": "cross-env BILLING_TEST_BOOTSTRAP=0 vitest run tests/integration/api/contract",
|
||||
"test:behavior:provider": "cross-env BILLING_TEST_BOOTSTRAP=0 vitest run tests/integration/provider",
|
||||
"test:behavior:chain": "cross-env BILLING_TEST_BOOTSTRAP=0 vitest run tests/integration/chain",
|
||||
"test:behavior:guards": "npm run check:api-handler && npm run check:image-reference-normalization && npm run check:task-submit-compensation && npm run check:test-coverage-guards && npm run check:requirements-matrix",
|
||||
"test:behavior:full": "npm run test:behavior:guards && npm run test:behavior:unit && npm run test:behavior:api && npm run test:behavior:chain",
|
||||
"test:regression": "npm run test:guards && npm run test:unit:all && npm run test:billing:integration && npm run test:integration:api && npm run test:integration:chain",
|
||||
"test:pr": "bash scripts/test-regression-runner.sh npm run test:regression",
|
||||
"test:behavior:full": "npm run test:behavior:guards && npm run test:behavior:unit && npm run test:behavior:api && npm run test:behavior:provider && npm run test:behavior:chain",
|
||||
"test:coverage:core-baseline": "cross-env SYSTEM_TEST_BOOTSTRAP=1 vitest run --config vitest.core-coverage.config.ts tests/unit tests/integration/api tests/integration/provider tests/integration/chain tests/integration/task tests/system tests/regression",
|
||||
"test:all": "npm run test:guards && npm run test:unit:all && npm run test:billing:integration && npm run test:billing:concurrency && npm run test:integration:api && npm run test:integration:provider && npm run test:integration:chain && npm run test:integration:task && npm run test:system && npm run test:regression:cases",
|
||||
"test:regression": "npm run test:all",
|
||||
"test:pr": "bash scripts/test-regression-runner.sh npm run test:all",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint:all": "npm run lint -- .",
|
||||
"verify:commit": "npm run lint:all && npm run typecheck && npm run test:behavior:full",
|
||||
"verify:push": "npm run lint:all && npm run typecheck && npm run test:regression && npm run build",
|
||||
"verify:commit": "npm run lint:all && npm run typecheck && npm run test:all",
|
||||
"verify:push": "npm run lint:all && npm run typecheck && npm run test:all && npm run build",
|
||||
"migrate:image-urls-contract": "tsx scripts/migrate-image-urls-contract.ts",
|
||||
"migrate:model-config-contract": "tsx scripts/migrations/migrate-model-config-contract.ts",
|
||||
"migrate:capability-selections": "tsx scripts/migrations/migrate-capability-selections.ts",
|
||||
|
||||
Reference in New Issue
Block a user