Skip to content
Development
Command

/test-fix-loop

Closed deploy → test → fix → redeploy loop against the test infobase, until the scenarios pass or the iteration budget is exhausted

From plugin
ai-rules-1c
55045 skills13 agents45 commands
> /plugin marketplace add comol/ai_rules_1c
> /plugin install 1c-rules@1c-rules

Command definition

test-fix-loop.md
description: Closed deploy → test → fix → redeploy loop against the test infobase, until the scenarios pass or the iteration budget is exhausted
argumentHint: "[<scenario / task description>] [--iterations N]"

/test-fix-loop — deploy → test → fix → redeploy until green

Run the requested test scenarios against the test infobase and, when they fail, close the loop: diagnose → fix the code → redeploy → re-test — until every scenario passes or the iteration budget runs out. This is the *outer* loop over test failures; the *inner* retry loop for deploy errors stays where it lives (`/update1cbase → Update retry loop`) and does not consume test iterations.

**Strictly opt-in.** This loop runs only when invoked as a command or explicitly requested in words; `UI_TESTING=essential` / `auto` enable routine UI verification, not this repeated deploy/fix loop. Invoking it **is** the explicit UI-test request that `manual` requires. Effective `UI_TESTING=off` still blocks: point to `/uitests essential`, `/uitests on` or `/uitests manual`; an explicit enable-and-run instruction satisfies the switch without a second confirmation. Execution prerequisites still apply. Web-client iterations are token-expensive — on that route state the expected cost once at the start.

Step 0. Prerequisites

Parameters, classes and defaults — `content/rules/dev-standards-env.md §1`; Defaulted keys are never asked for. Blocking for this command: `PLATFORM_PATH`, `INFOBASE_PATH`, **and a UI route** — QA MCP with a test client of the infobase, or `INFOBASE_PUBLISH_URL` for the web client (without either there is nothing to loop over — stop and ask). The dev/test-target confirmation of `/deploy-and-test` applies unchanged.

Scenario set: taken from the argument / user request. Do not invent scenarios beyond what was asked; one scenario per user-visible behavior, in the template of `content/agents/tester.md → Test Scenarios`.

**EDT projects** (`.dev.env` `USE_EDT=true`): the deploy step keeps a single owner per `content/rules/edt-workflow.md`.

Iteration budget: `--iterations N` or a number stated in the request; default **3** (mirrors the update-retry budget). Route and driving rules — via `/deploy-and-test` Step 4: QA MCP (`1c-qa-testing` skill, `qa-testclient.md`; a fresh test client after every redeploy), else the web client (`ui-testing-tools.md`, `web-client-driving.md`, including the two-attempts anti-loop limit inside the browser).

The loop (per iteration)

1. **Deploy.** Run `/deploy-and-test` Steps 0–3 (its command lines, tool selection, and retry loop are the single source of truth). Full-snapshot mode when `EXTENSION_NAMES` is configured, single-target otherwise. If the deploy retry loop exhausts its own budget, the whole command stops with its failure report — a broken deploy is not a test failure. 2. **Test.** Run the scenario set per `/deploy-and-test` Step 4 / the `1c-tester` workflow.

  • Iteration 1: the full requested set.
  • Later iterations: only the previously failed scenarios, **plus** any previously passed scenario whose covered area was touched by the fix (use the impact-analysis evidence from Gate 4 of `verification-gates.md` to decide; when in doubt, re-run the scenario).

3. **All green → exit** to the final report. 4. **On failure — fix before the next iteration.** Diagnose per `standards(name="systematic-debugging")` (the `DEBUG_FAST_PATH` fast path applies). Fix through the normal development procedure — triage quick-fix vs full-cycle per `AGENTS.md`, delegating to `1c-error-fixer` when delegation is warranted (`subagents.md`). Run the applicable Gates 1–3 on every touched module **before** redeploying. Re-deploying unchanged sources is forbidden — the same no-change-repeat rule as everywhere else; an iteration without a fix is a wasted iteration and a defect. 5. Next iteration (back to 1) while the budget allows.

Hard rules

  • **Every iteration must change something** — a code/metadata fix, a corrected scenario precondition, or a corrected test step proven wrong by evidence. "Try again, maybe it passes" is forbidden.
  • **A scenario is not massaged into passing.** If the expected result was wrong, say so explicitly and get the user's confirmation before changing the expectation; silently weakening an assertion is a defect.
  • **Budget exhausted → honest stop.** Report the remaining failures with reproduction steps, screenshots/log fragments, the fix applied in each iteration, and a recommendation. Never present a red loop as done.

Final report

An iteration table — per iteration: deployed git state, scenarios run, pass/fail per scenario, one-line fix summary — followed by the standard test report (`tester.md → Test Report Format`) for the final state, and the `IB tooling:` line required by `AGENTS.md → Skills and Subagents`.

Read more
@comol
Ships withai-rules-1c

Rules\skills\subagens for vibecoding in 1C(bsl)

55032 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
550
Star history of comol/ai_rules_1c on GitHub, a chart by star-history.com

Other commands on ai-rules-1c.

build-release

build-release

Command

Build release artifacts from committed sources — .cf for the main configuration and .cfe per extension, with optional version…

@comol@comolInstall Command
caveman

caveman

Command

Toggle the caveman communication style — set CAVEMAN (on|auto|off) in .dev.env for the whole project; on|off|auto persist,…

@comol@comolInstall Command
check-uuid

check-uuid

Command

Check a 1C XML configuration dump for duplicate UUIDs, and optionally regenerate them

@comol@comolInstall Command
checkmcp

checkmcp

Command

Check availability of 1C MCP servers and install/start the missing ones

@comol@comolInstall Command
checkupdates

checkupdates

Command

Read-only check for available updates of the 1C MCP server images and of the 1c-rules ruleset, without pulling or installing…

@comol@comolInstall Command
deploy-and-test

deploy-and-test

Command

Load the configuration into the test infobase from .dev.env and check the result in the 1C interface — QA MCP first, the web…

@comol@comolInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command