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.19.tar.gz (87.9 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.19-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for testtools_cli-0.2.19.tar.gz
Algorithm Hash digest
SHA256 333e71de6528c61c09ef58a4f3b30dc99ff4c29a3f5bb6320ef6e146c240165c
MD5 32ba63cdf257c3cdc5fb9aa3cbc6360e
BLAKE2b-256 fee2fb23cb4ed487579e0d608d263cf07004a73d117cba47ee086549ce84d1c3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for testtools_cli-0.2.19-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b5fcab80aaa4499ba422589310f7bee29a6d78d6cf9b115f0bd9a30207c7fd
MD5 f39659fb730d8ea690517a265393b4da
BLAKE2b-256 19d7d930f6f5d06f716b9e26e4f7209447be27554d51025eeb69168f8b12d2c5

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