Skip to main content

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


Download files

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

Source Distribution

testtools_cli-0.2.18.tar.gz (88.1 kB view details)

Uploaded Source

Built Distribution

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

testtools_cli-0.2.18-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

Details for the file testtools_cli-0.2.18.tar.gz.

File metadata

  • Download URL: testtools_cli-0.2.18.tar.gz
  • Upload date:
  • Size: 88.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for testtools_cli-0.2.18.tar.gz
Algorithm Hash digest
SHA256 9cad4dd397d8a54ebf8ed67ee39f282d81edf42daa9eb7c6265c28496f89e879
MD5 11ac27d88092262ba173c38348fa0245
BLAKE2b-256 3357f6fc785261941d97c1636b3972808be6a09df3aa10a5918e45e93b19e849

See more details on using hashes here.

File details

Details for the file testtools_cli-0.2.18-py3-none-any.whl.

File metadata

  • Download URL: testtools_cli-0.2.18-py3-none-any.whl
  • Upload date:
  • Size: 67.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for testtools_cli-0.2.18-py3-none-any.whl
Algorithm Hash digest
SHA256 ae86b5c97f8a0e2788c8fb06713a63fa2be84b8bb6e9477eefba6e7bfcc0e7e7
MD5 66d02b01ea93e91b7f9bd9fecaefc586
BLAKE2b-256 105119be1f7486d18c140da6a4694d0c8b0b69d273859a65cc0d6fb23157e35a

See more details on using hashes here.

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