Skip to main content

综合测试框架 - 用于管理测试环境、测试对象和测试用例的完整生命周期

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptestx-1.1.0.tar.gz (362.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ptestx-1.1.0-py3-none-any.whl (179.8 kB view details)

Uploaded Python 3

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

Hashes for ptestx-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b935a5e8cccd688616e785a26751a892cc651fa7ead773413a8c4ac4e2c6ecfc
MD5 f11d10c85ddb38517d90a98d7384efe4
BLAKE2b-256 a887440f9582cd3a67d0231ed980af7972f5f2c61de394290e78869be60e76ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for ptestx-1.1.0.tar.gz:

Publisher: cd.yml on wu-champion/ptest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ptestx-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42ad8f52e426482622fa2bdf3e705cce540fe9f3849cd19fd1ca7d65c61f1180
MD5 6db8736e367f7f978b0f20e0f647dab2
BLAKE2b-256 f8c88acf2b6c572e522de151c29533320f0464c6397fcdff326bd15e2a6cf232

See more details on using hashes here.

Provenance

The following attestation bundles were made for ptestx-1.1.0-py3-none-any.whl:

Publisher: cd.yml on wu-champion/ptest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page