Test authoring

From IngvarConsulting/unica · View interactive version

Test authoring is an AI agent skill from the GitHub repository IngvarConsulting/unica. Проектирование тестов 1С: YaXUnit и Vanessa Automation. Используй когда нужно написать тест, подобрать сценарии или подготовить all/module запуск; сам запуск тестов на поверхности v0.13 не опубликован и остаётся отдельным шагом.

How to use this skill

Skill file

Test Authoring

MCP routing

контракт каждой — argsSchema, execution, previewRequired,

dryRunRequired. Контракт вызова бери оттуда, а не из этого текста;

используй опубликованную argsSchema; при support.state: limited

разрешено только подмножество support.supportedArgs. Недоступной операции

в словаре нет. Для плановой операции сначала проверь результат

dryRun: true, затем исполняй запрос с dryRun: false. Preview

не фиксирует входы между вызовами. Не обходи контракт прямым runner-ом.

Workflow

  1. Define the behavior under test before choosing the framework: pure BSL unit, object lifecycle, form behavior, integration contract, or regression around a diagnostic.
  2. Search existing tests and fixtures with unica.search; follow local naming, setup, teardown, and assertion style.
  3. Prefer YaXUnit for module/unit-level BSL behavior and Vanessa Automation for UI/business scenarios that require a client.
  4. Build the smallest stable fixture. Avoid dependence on production data unless the user explicitly requests an integration test.
  5. Check the new test module with unica.check {at} after adding test code (unica.check {} alone judges workspace readiness); a YaXUnit or Vanessa Automation run is not on the v0.13 surface, so it is not launched from here.
  6. Report that runtime verification was not performed. If separate test evidence is supplied, report the exact failing test, expected/actual behavior, and whether the failure is test setup or product behavior.

Verification gate

a syntax/diagnostic check, or an explicit residual risk.

analysis evidence from the relevant unica.* tools before treating the test

plan as complete.

unica.view on the object for available static checks; a test run

needs separate execution evidence.

Scenario design

MCP example

{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "unica.check",
    "arguments": {
      "at": "main:CommonModule.ТестДокументаЗаказКлиента"
    }
  }
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.