@mknrt/autotests-overkill
v1.2.6
Published
AI-assisted testing intelligence platform for autotests2, caseplatform-web, and CI artifacts
Readme
Autotests Overkill
Autotests Overkill is a standalone AI-assisted testing platform for autotests2, caseplatform-web, optional fis_platform backend context, and CI artifacts. It is designed for Codex-style work: inspect existing coverage, extract frontend/backend contracts and runtime logic, generate draft specs, triage failures, and narrow rerun scope without silently mutating consumer repositories.
Runtime requirement:
- Node.js 22.5+ in both Windows and WSL environments
- No native database addon is required; the knowledge store runs on the built-in
node:sqlitemodule so the same package install works from either environment
What v1.1 adds
- Legacy widget contract extraction for files such as
dateRangeInput_control.jsanddateRangeInput_singleton.js - Stronger spec blueprints that reuse real
autotests2setup, commands, helpers, and selector patterns - Acceptance coverage for both modern and legacy widgets
- Knowledge-store-backed retrieval for asset search, area context, impact analysis, and blueprint support
- Optional
fis_platformbackend knowledge through an evidence-drivenApiDiscoveryCatalog,api-interactiondocuments, andbackend-endpointcontracts - Optional ReportPortal and GitLab adapters with graceful artifacts-first fallback
- Codex MCP setup for npm package usage and local checkout development
Repository layout
src/implementation codemcp/MCP entrypoint notesskills/Codex skills for end-to-end workflowsindexer/indexing entrypoint notesconnectors/connector notestemplates/prompt and blueprint templatesdocs/operator and integration documentationtests/unit, integration, and acceptance checks
Install
Published npm package install:
- Run
npm install -D @mknrt/autotests-overkill. - Copy
node_modules/@mknrt/autotests-overkill/overkill.config.example.jsontooverkill.config.json. - Set
repos.autotests2,repos.caseplatformWeb, optionalrepos.fisPlatform, andci.artifactsRoot. - Run
npx autotests-overkill index.
Repository-local development:
- Run
npm install. - Copy
overkill.config.example.jsontooverkill.config.json. - Set
repos.autotests2,repos.caseplatformWeb, optionalrepos.fisPlatform, andci.artifactsRoot. - Run
npm run build. - Run
npm run index.
Daily workflow
- Refresh local knowledge with
npm run index. - Start the MCP server through the consumer repository's
.codex/config.toml, or runnpx autotests-overkill mcpdirectly for manual checks. - Use
find_frontend_contract,find_existing_test_assets, andgenerate_spec_blueprintfor a new feature draft. - Use
review_test_draftto critique a draft for reuse, selector stability, setup drift, and likely gap coverage before editingautotests2. - Use
find_backend_test_contextwhen a request flow needs backend validation, params, async completion, or contract-drift evidence. - Use
summarize_ci_context,triage_failed_run, andanalyze_diff_impactfor failure or change triage. - Review generated output manually before editing
autotests2.
CLI commands:
npx autotests-overkill indexnpx autotests-overkill mcpnpx autotests-overkill acceptance coverage captionnpx autotests-overkill acceptance blueprint dateRangeFieldnpx autotests-overkill acceptance review caption
Verification commands
npm run verifynpm run mcp:smokenpm run acceptance:coveragenpm run acceptance:coverage:legacynpm run acceptance:blueprintnpm run acceptance:reviewnpm run acceptance:failurenpm run acceptance:impact
Consumer config
The platform reads overkill.config.json with these keys:
repos.autotests2repos.caseplatformWebrepos.fisPlatformoptional path to../fis_platformci.artifactsRootci.reportPortal.endpointci.reportPortal.projectci.reportPortal.tokenci.gitlab.baseUrlci.gitlab.projectIdci.gitlab.tokencacheDir
The default path is local and artifacts-first. Missing ReportPortal or GitLab credentials do not break tools; the platform keeps using local stats, screenshots, videos, and captured API payloads.
Troubleshooting
- If MCP or indexing fails with
ERR_UNKNOWN_BUILTIN_MODULEfornode:sqlite, your Node.js version is too old. Upgrade to Node.js 22.5 or newer in that environment. - If startup fails with
database is locked, another process is already using the same cache database. Stop the competing process or configure a differentcacheDir.
Backend integration
Backend indexing is discovery-first and evidence-driven, not hardcoded. The first bridge is an ApiDiscoveryCatalog built from autotests2 support code such as request wrappers, endpoint constants, cy.request, fetch, XMLHttpRequest, and API capture helpers. Selected high-signal families become api-interaction documents with normalizedPaths, consumerSignalIds, evidencePaths, confidence, and whySelected.
When repos.fisPlatform points to ../fis_platform, refresh passes that catalog explicitly into backend discovery. fis_platform sources are selected by REST/JAX-RS signals such as @Path, @GET, @POST, @PUT, @DELETE, @QueryParam, @HeaderParam, @Consumes, and @Produces; noisy directories such as thirdparty, extjs, oryx, generated, node_modules, and vendor are excluded by rule. Matching sources become backend-endpoint documents with endpoint paths, params, rule hints, evidence paths, confidence, and whyMatched.
Only high-confidence links (confidence >= 0.7) drive blueprint, triage, and impact recommendations. Lower-confidence backend matches may be surfaced as exploratory evidence, but they are not treated as recommendations. Runtime API captures are read on demand by triage_failed_run in iteration 1 and are not persisted as raw knowledge-store documents.
MCP tools
find_existing_test_assetsreview_test_draftfind_backend_test_contextfind_test_area_contextfind_frontend_contractfind_frontend_runtime_logicmap_feature_to_existing_coverageanalyze_test_gapsgenerate_spec_blueprintrecommend_selector_strategybuild_setup_teardown_plananalyze_diff_impacttriage_failed_runbuild_rerun_scopesummarize_ci_context
Every tool returns the same normalized shape:
summaryevidencerecommended_actionsrepo_pathsconfidencewarnings
Codex MCP setup
This repository can be consumed either from a Git checkout or as a published npm package:
.mcp.jsonregisters a local checkout MCP command onlyskills/is auto-discovered as the bundled skill set
For npm package consumers such as autotests2, prefer a project-local Codex config:
[mcp_servers.autotests-overkill]
command = "node"
args = ["./node_modules/@mknrt/autotests-overkill/dist/src/cli/runMcpServer.js"]
enabled = true
startup_timeout_sec = 20
tool_timeout_sec = 120See consumer-integration.md, operator-cookbook.md, and plugin-packaging.md for setup details.
