TestSolar TestTool CLI
Project description
testtools-cli
testtools命令行工具,主要提供脚手架辅助功能
安装
pip install testtools-cli
如何使用
💾testtools-cli install
安装工具开发依赖的相关组件,目前包括:
- solarctl
✨testtools-cli init
在指定目录(默认当前目录)创建测试工具脚手架内容,当前支持语言:
- python
- golang
使用例子:
testtools-cli init
testtools-cli init --workdir /tmp/jagma
测试工具建议使用小写英文名称。
🪄testtools-cli check
检查指定目录(默认当前目录)的脚手架内容还有哪些要修改的。
- __TODO__: 必须实现的部分
必须实现的部分主要包括用例的加载、执行以及结果的上报
- __RECOMMANDTODO__: 建议实现的部分
建议实现的部分主要为工具的元数据信息,包括homePage(工具主页)、repository(工具源码地址)、gitPkgUrl以及httpPkgUrl(工具压缩包地址)等
🐞testtools-cli debug
执行加载用例及执行用例并输出工具日志,命令支持参数如下所示:
-
--case-root指定用例库根目录,若不传入则默认为当前目录 -
--target指定加载/执行的用例范围,支持传入多个执行目标,若不传入则默认执行用例库下所有用例。 -
--tool指定开发的工具所在目录,若不传入则默认为当前目录 -
--commands指定构建 TestContainer 时执行的自定义命令,适用于用例执行过程中需要安装额外依赖的场景,支持传入多个命令
开发说明
脚手架内容按照语言统一放到 脚手架目录 下面。模板语言使用Jinja2,只有2条简单规则:
- 文件内容中的
{{name}}会被替换为输入的工具名称 - 路径中的
{{name}}会被替换为输入的工具名称
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 testtools_cli-0.2.16.tar.gz.
File metadata
- Download URL: testtools_cli-0.2.16.tar.gz
- Upload date:
- Size: 87.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b682f70f70a357016e3f92bf836057614e0fe79140c228ea95457cf8372653b
|
|
| MD5 |
490c31958a972b6b51422151e529a0c2
|
|
| BLAKE2b-256 |
1d6381d53745d3bc50b1caeac5fbb879035f2c1a5e5ab511895e752ceda2356e
|
File details
Details for the file testtools_cli-0.2.16-py3-none-any.whl.
File metadata
- Download URL: testtools_cli-0.2.16-py3-none-any.whl
- Upload date:
- Size: 66.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
152052f470e84182e76cc8b835c50093c23897c7c896e3e908d73b11c68053d0
|
|
| MD5 |
9c2e78b9d47e0c89eeff01a8ac5c06b7
|
|
| BLAKE2b-256 |
82a9cbc095c2554ea6c544a64a0f08c387c488cad24388d0459de9486e1d6634
|