跳到正文
cccskills
免费在 GitHub 公开

test:review

Review tests for quality - assertive checks, no hidden skips, proper coverage

中文简介正在准备中。当前显示原文说明。

rossoctl/rossoctl星标 303(GitHub 303 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Test Review

Review test quality to ensure tests actually catch failures.

When to Use

  • After writing new tests (before committing)
  • When reviewing a PR with test changes
  • When tests pass but behavior seems wrong
  • Periodic test suite health check

Anti-Patterns to Catch

Anti-PatternProblemFix
assert TrueAlways passes, tests nothingAssert specific values
@pytest.mark.skip without reasonHides failures silentlyAdd reason or remove
@pytest.mark.xfail without ticketAccepted failures without trackingLink to issue
try/except: pass in testSwallows errorsLet exceptions propagate
assert response is not NoneOnly checks existence, not correctnessAssert status code + content
assert len(items) > 0Doesn't verify contentAssert specific items or properties
Empty test bodyTest exists but does nothingImplement or delete
Hardcoded timeouts sleep(30)Flaky, slowUse wait_for / retry pattern

Review Checklist

  • Assertive: Every test asserts specific expected values
  • No silent skips: @skip has a reason and linked issue
  • No xfail without tracking: @xfail references a ticket
  • Error cases tested: Not just happy path
  • Deterministic: No flaky timing dependencies
  • Isolated: Tests don't depend on execution order
  • Named clearly: Test name describes what it verifies
  • Cleanup: Resources created in test are cleaned up

Review Command

Search for anti-patterns in test files:

grep -rn "assert True\|assert False\|@pytest.mark.skip\|@pytest.mark.xfail\|pass$" rossoctl/tests/

Search for weak assertions:

grep -rn "is not None\|!= None\|assert .*>" rossoctl/tests/ | grep -v "# ok"

Related Skills

  • test:write - Write new tests following standards
  • test:run-kind - Run tests on Kind
  • test:run-hypershift - Run tests on HyperShift
  • tdd:ci - TDD workflow that includes test review

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

auth

免费

Authentication and authorization patterns for Rossoctl services

中文简介正在准备中。当前显示原文说明。

rossoctl/rossoctl3032026年10月25日 更新

Create confidential OAuth2 clients in Keycloak for server-to-service authentication

中文简介正在准备中。当前显示原文说明。

rossoctl/rossoctl3032026年10月25日 更新

Configure MLflow with mlflow-oidc-auth plugin for Keycloak OIDC authentication

中文简介正在准备中。当前显示原文说明。

rossoctl/rossoctl3032026年10月25日 更新

Configure OpenTelemetry Collector with OAuth2 authentication for trace export

中文简介正在准备中。当前显示原文说明。

rossoctl/rossoctl3032026年10月25日 更新

ci

免费

CI pipeline monitoring, status checks, and PR validation workflows

中文简介正在准备中。当前显示原文说明。

rossoctl/rossoctl3032026年10月25日 更新

Monitor running CI jobs, wait for completion, create tasks for results

中文简介正在准备中。当前显示原文说明。

rossoctl/rossoctl3032026年10月25日 更新

查看 rossoctl 的全部技能

报告此技能的问题