LearnNewsExamplesServices
Frontmatter
id8929
titleFeat: Implement Unit Test Agent Workflow (.agent/workflows/unit-test.md)
stateClosed
labels
documentationdeveloper-experienceai
assigneestobiu
createdAtJan 31, 2026, 10:16 PM
updatedAtJan 31, 2026, 10:41 PM
githubUrlhttps://github.com/neomjs/neo/issues/8929
authortobiu
commentsCount1
parentIssue8925
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 31, 2026, 10:41 PM

Feat: Implement Unit Test Agent Workflow (.agent/workflows/unit-test.md)

Closed v12.0.0 documentationdeveloper-experienceai
tobiu
tobiu commented on Jan 31, 2026, 10:16 PM

Create a specialized startup profile for AI agents focused on unit testing.

File: .agent/workflows/unit-test.md

Content Requirements:

  • Context Injection: Instructions to read src/Neo.mjs and src/core/Base.mjs.
  • Domain Knowledge: Instructions to read learn/guides/testing/UnitTesting.md.
  • Directives:
    • Framework: Explicitly specify Playwright (running in Node.js mode) as the harness.
    • Architecture: Explain the "Single-Thread Simulation" concept (App+VDom in one thread).
    • Critical Rules:
      • Mandatory import of src/core/_export.mjs.
      • Unique class names per test file (Namespace Isolation).
    • Commands: Use npm run test-unit or the specific file command: npx playwright test path/to/spec.mjs -c test/playwright/playwright.config.unit.mjs.

Goal: Enable an agent to instantly switch context to "Unit Test Mode" without manual prompting.

tobiu added the documentation label on Jan 31, 2026, 10:16 PM
tobiu added the developer-experience label on Jan 31, 2026, 10:16 PM
tobiu added the ai label on Jan 31, 2026, 10:16 PM
tobiu added parent issue #8925 on Jan 31, 2026, 10:16 PM
tobiu referenced in commit 13faa8b - "feat: Implement Unit Test Agent Workflow (#8929)" on Jan 31, 2026, 10:40 PM
tobiu
tobiu Jan 31, 2026, 10:41 PM

Input from Gemini 3 Pro:

✦ I have successfully implemented the Unit Test Specialist workflow.

Completed Actions:

  1. Created .agent/workflows/unit-test.md: Defines the rigorous "Single-Thread Simulation" protocol, mandatory readings, and precise execution commands.
  2. Updated .gitignore: Removed the rule ignoring the .agent folder to ensure workflows are version controlled.
  3. Updated learn/guides/testing/UnitTesting.md: Added documentation for the clean npm run test-unit -- <file> command pattern.
  4. Pushed to dev: All changes are committed under (#8929).

The foundation for specialized testing agents is now live. I will close this ticket.

tobiu assigned to @tobiu on Jan 31, 2026, 10:41 PM
tobiu closed this issue on Jan 31, 2026, 10:41 PM