综合测试框架 - 用于管理测试环境、测试对象和测试用例的完整生命周期
Project description
ptest - 综合测试框架
ptest是一个全面的测试框架,用于管理测试环境、测试对象和测试用例。
📚 完整文档
完整的文档请访问 docs/ 目录:
🚀 快速开始
安装
pip install .
初始化测试环境
ptest init --path /home/test/
管理测试对象
以Mysql为例
# 安装MySQL对象
ptest obj install mysql my_mysql_db --version 9.9.9
# 启动MySQL对象
ptest obj start my_mysql_db
# 列出所有对象
ptest obj list
管理测试用例
# 添加测试用例
ptest case add mysql_connection_test '{"type": "connection", "description": "Test MySQL connection"}'
# 运行特定测试用例
ptest case run mysql_connection_test
# 运行所有测试用例
ptest run all
生成报告
# 生成HTML报告
ptest report --format html
# 生成JSON报告
ptest report --format json
查看状态
ptest status
命令别名
同时提供了p作为简写命令:
p init --path /home/test/
p obj install mysql my_mysql_db
p run all
📖 更多信息
查看 docs/ 目录获取完整的文档,包括:
- 详细的架构设计文档
- 数据库配置和使用指南
- 测试执行引擎说明
- 开发规范和贡献指南
- API 接口文档
ptest - 综合测试框架,让测试变得简单而强大!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ptestx-1.1.0.tar.gz.
File metadata
- Download URL: ptestx-1.1.0.tar.gz
- Upload date:
- Size: 362.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b935a5e8cccd688616e785a26751a892cc651fa7ead773413a8c4ac4e2c6ecfc
|
|
| MD5 |
f11d10c85ddb38517d90a98d7384efe4
|
|
| BLAKE2b-256 |
a887440f9582cd3a67d0231ed980af7972f5f2c61de394290e78869be60e76ba
|
Provenance
The following attestation bundles were made for ptestx-1.1.0.tar.gz:
Publisher:
cd.yml on wu-champion/ptest
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ptestx-1.1.0.tar.gz -
Subject digest:
b935a5e8cccd688616e785a26751a892cc651fa7ead773413a8c4ac4e2c6ecfc - Sigstore transparency entry: 942936029
- Sigstore integration time:
-
Permalink:
wu-champion/ptest@ad580e683cbed98ac815805ddc9dfcfb9127502e -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/wu-champion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@ad580e683cbed98ac815805ddc9dfcfb9127502e -
Trigger Event:
release
-
Statement type:
File details
Details for the file ptestx-1.1.0-py3-none-any.whl.
File metadata
- Download URL: ptestx-1.1.0-py3-none-any.whl
- Upload date:
- Size: 179.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42ad8f52e426482622fa2bdf3e705cce540fe9f3849cd19fd1ca7d65c61f1180
|
|
| MD5 |
6db8736e367f7f978b0f20e0f647dab2
|
|
| BLAKE2b-256 |
f8c88acf2b6c572e522de151c29533320f0464c6397fcdff326bd15e2a6cf232
|
Provenance
The following attestation bundles were made for ptestx-1.1.0-py3-none-any.whl:
Publisher:
cd.yml on wu-champion/ptest
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ptestx-1.1.0-py3-none-any.whl -
Subject digest:
42ad8f52e426482622fa2bdf3e705cce540fe9f3849cd19fd1ca7d65c61f1180 - Sigstore transparency entry: 942936037
- Sigstore integration time:
-
Permalink:
wu-champion/ptest@ad580e683cbed98ac815805ddc9dfcfb9127502e -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/wu-champion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@ad580e683cbed98ac815805ddc9dfcfb9127502e -
Trigger Event:
release
-
Statement type: