AgentSkillsCN

ui-test-runner

当被要求运行 URLS4IRL 的 UI 测试时,将使用此技能。

SKILL.md
--- frontmatter
name: ui-test-runner
description: When asked to run UI tests for URLS4IRL, this skill will be used.
argument-hint: Marker Name

UI tests are run through the u4i-local-web container.

  1. Find all UI test markers listed in @pytest.ini. Any UI test set will have a marker ending in *_ui.
  2. If the user passes a specific marker to run, then run this marker: $0_ui.
  3. You can run UI tests with the following command. Just replace #MARKER with the actual marker.
bash
`docker compose exec web bash -c "source /code/venv/bin/activate && python -m pytest -m '#MARKER' -x"`
  1. Verify the tests run.
  2. Check for any failures.
  3. Report any test failures to the user with relevant error lines from the test
  4. Investigate the test failures and hypothesize why they are occurring

NOTE - You MUST run one of the markers ending in _ui.