molecule-ai-plugin-molecule.../tests
Molecule AI Plugin-Dev 829f9f4c2e
Some checks failed
CI / validate (push) Failing after 1s
CI / validate (pull_request) Failing after 1s
add smoke tests + rationale README
All 5 thin-skill adapter repos now have:
- tests/README.md explaining limited coverage rationale (prose-only skills)
- tests/test_smoke.py covering plugin.yaml, SKILL.md frontmatter, adapter re-export

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 15:03:42 +00:00
..
README.md add smoke tests + rationale README 2026-05-10 15:03:42 +00:00
test_smoke.py add smoke tests + rationale README 2026-05-10 15:03:42 +00:00

Test Rationale — molecule-skill-update-docs

What this plugin does

molecule-skill-update-docs is a prose-only skill: its logic lives entirely in skills/update-docs/SKILL.md (12-step documentation update workflow). The adapter (adapters/claude_code.py) is a thin re-export of AgentskillsAdaptor from plugins_registry.builtins — no business logic, no network calls, no side effects.

What is tested

  • plugin.yaml is valid YAML with required fields (name, version, runtimes, skills)
  • skills/update-docs/SKILL.md has valid YAML frontmatter and a body with a Steps section documenting the update workflow
  • adapters/claude_code.py exists and re-exports AgentskillsAdaptor
  • validate-plugin.py (.molecule-ci/scripts/) exits zero

What is NOT unit-tested (and why)

The documentation update workflow is prose guidance inside SKILL.md — no Python function to unit test. Smoke tests cover the artifact structure; full evaluation requires integration tests against a real workspace with filesystem access.

Running tests

python -m pytest tests/ -v