AGENT SKILL

qa-and-test-runner

Operate LaVague QA and lavague-test workflows for Gherkin-to-pytest generation and benchmark/static-site configs.

License 许可
Apache-2.0
最近更新
2026-10-08
Stars
★ 11
Forks
3

01 前言 Front Matter

name
qa-and-test-runner
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate LaVague QA and lavague-test workflows for Gherkin-to-pytest generation and benchmark/static-site configs.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

qa-and-test-runner

Use this sub-skill when the user wants to turn Gherkin feature files into pytest-bdd files with lavague-qa, or wants to validate/run LaVague benchmark-style site configs with lavague-test.

Route first

Safe default workflow

  1. Do a file-only probe first. Do not run lavague-qa or lavague-test until inputs validate and the user accepts browser, network, and model-provider use.
  2. Prefer explicit inputs over package defaults:
    • lavague-qa --url <site-url> --feature <file.feature>
    • lavague-test --directory <sites-dir> --site <site-name>
  3. Use a custom context file only when it defines both context and token_counter; otherwise route to context guidance.
  4. Treat --full-llm, live public websites, browser display, and database logging as opt-in because they can add token cost, network dependence, local browser state, or persistent files.
  5. After generation, run generated pytest only when a browser, target site, and provider credentials are available and permitted.

Expected observations

  • lavague-qa creates generated_tests/<feature-stem>.feature and generated_tests/<feature-stem>.py; with --full-llm, the Python file stem ends in _llm.
  • lavague-test prints per-task success/failure lines and a final success percentage; its process exit is successful only when every expectation passes.
  • Both workflows ultimately use Selenium-backed LaVague agents, so live execution requires browser support and model-provider access even when static probes pass.

04 同仓库更多 Skills