AgentSkillsCN

x07-test

使用 X07 测试框架(x07 test)运行项目测试,生成机器可读的 JSON 报告。

SKILL.md
--- frontmatter
name: x07-test
description: Run project tests using the X07 test harness (x07 test), producing a machine-readable JSON report.
metadata:
  short-description: Run x07 tests
  version: 0.1.0
  kind: docs

x07-test

This skill provides the single canonical way to run tests for an X07 project using the built-in test harness.

Canonical command

  • x07 test --manifest tests/tests.json

Notes

  • By default, x07 test prints JSON to stdout; use --report-out <path> to write a report file.
  • x07 test resolves stdlib.lock by searching upward from the manifest directory, then upward from the x07 executable location. Override with --stdlib-lock <path>.
  • New projects created with x07 init include tests/tests.json plus a minimal tests/smoke.x07.json.
  • Publishable package repos created with x07 init --package include tests/tests.json and publishable modules under modules/ (no tests/smoke.x07.json).
  • Tests under tests/ can import your project modules via project module-root discovery (typically src/ in projects, and modules/ in package repos).
  • World-gating is enforced at compile time. Keep unit tests small and pure (no filesystem/network I/O) unless you are explicitly writing OS-world integration tests and running them under the sandbox profile.

See also: https://x07lang.org/docs/toolchain/testing-by-example/