testing
When creating tests and using tests for testing of application operation
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Testing instructions
For creating tests and using tests for testing of application operation.
Constraint: Do not execute multi-line Python scripts directly in the terminal.
Procedure for Multi-line Scripts:
- Search: Check codebase and memory for existing scripts.
-
Evaluate:
- Exact Match Found: Execute the existing script.
-
Similar Match Found:
- Analyze dependencies (what relies on this script?).
- Determine strategy: Modify existing vs. Duplicate new.
- Execute the modified or duplicated script.
- No Match: Create a new script file, then execute it.
Testing types
- Terminal Scripts, Python Tests, Browser, Use what is appropriate per task, All, None, or Custom.
Terminal Scripts
One-line tests: Run directly in the terminal. Multi-line tests:
- Search the codebase and memory to see if an equivalent script already exists.
- If exact: reuse it.
- If similar: create or modify a
.pyscript in an appropriate location (default totests/bututils_db/for DB-related tasks).
- Run the script from its
.pyfile instead of pasting multiple lines.
Python tests
Note: Uses live PostgreSQL database, not a separate test DB. Creating tests:
- Use
pytest
browser
- Use
browser_actionfor E2E flows. - Local querystring-based auth helper is available:
-
http://localhost:5000/auth/login?email=[creds]&password=[hashed]
-
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-04
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!