Files
devplacepy/.claude/commands/test.md
T
retoor 34fa56a836
DevPlace CI / test (pull_request) Failing after 10m29s
Full test suite is now the mandatory final validation; fix everything it surfaced
- Policy: every change ends with make test (all tiers, all tests) green; docs and agent guardrails updated accordingly
- schema.py: ensure the full filtered/indexed column set of instances via get_table (ingress_slug, ports_json, container_gateway, slug, status, ...) so a partial first insert can never break the ingress proxy
- docs_api: award body param location body -> json; gateway endpoints documented public -> user to match enforced auth
- tests: missing get_table import (trash restore), audit read as admin (award), deterministic online-roster and leaderboard-cache handling, container visibility updated to the primary-admin-only rule, scoped AI usage heading selector past the hidden Tools nav links
2026-07-22 23:55:46 +02:00

1.2 KiB

description, argument-hint, allowed-tools
description argument-hint allowed-tools
Run DevPlace tests. Run a tier, a file, or a single test with the correct flags. Subagents never run tests themselves (the serial suite cannot run concurrently); the orchestrating session always runs the full suite as the final validation of every change.
unit|api|e2e|all|<path::test_name>
Bash(make test*), Bash(python -m pytest *), Read

Run the requested tests: $ARGUMENTS

Mapping:

  • unit -> make test-unit
  • api -> make test-api
  • e2e -> make test-e2e
  • all or empty -> make test
  • a path like tests/api/posts/create.py::test_x -> python -m pytest <that> -v --tb=line -x

Tests run serially on port 10501 with a tempfile SQLite DB and DEVPLACE_DISABLE_SERVICES=1. Subagents and workflows never launch tests (the serial single-process suite cannot run concurrently); the orchestrating session runs the full suite (make test) as the mandatory final validation of every change.

Report results clearly. On a failure, show the relevant output, and if a browser (e2e) test failed, point me at the screenshot under /tmp/devplace_test_screenshots/. Never weaken a test to make it pass; if a test reveals a real bug, report it - do not edit the test.