Skip to main content

utest-manage 管理工具

概述

  • 提供脚手架与工程管理能力:initnew-casebuildclean
  • 与核心包解耦,作为独立可安装的 CLI 分发。

新增能力

  • update-core:从远程模板(失败回退本地模板)更新项目中的核心文件,可按需选择性更新单个或多个文件。

命令说明

  • 查看帮助:
utest-manage --help
  • 初始化仅脚本目录(依赖 utest-core,不复制 core 源码):
utest-manage init .
utest-manage init ./my_tests --force

说明:init 默认从内置远程模板下载并直接解压到目标目录,若远程不可用则回退到本地 manage/templates

  • 新建示例用例:
utest-manage new-case my_login_test
  • 构建与清理:
utest-manage build
utest-manage clean

更新核心文件:update-core

用于将「模板中的核心文件」同步到当前或指定目录。默认更新全部核心项,支持 --files 选择性更新,--force 覆盖。

核心项清单:

  • uv.toml
  • update_config.py
  • start_test.py
  • run.sh
  • requirements.txt
  • build.py
  • test_cases/internal/ 目录

用法:

# 在当前目录更新全部核心项(若存在且不加 --force,将跳过)
utest-manage update-core

# 在指定目录更新全部核心项
utest-manage update-core /path/to/project

# 仅更新部分文件(可多次传入 --files,或用逗号分隔)
utest-manage update-core --files uv.toml --files start_test
utest-manage update-core --files "uv.toml,run.sh,internal"

# 强制覆盖目标文件/目录
utest-manage update-core --force
utest-manage update-core /path/to/project --files internal --force

--files 支持的别名:

  • uv.toml|uvtoml
  • update_config(映射到 update_config.py)
  • start_test(映射到 start_test.py)
  • run.sh|run_sh
  • requirements|requirements.txt
  • build|build.py
  • internal(映射到 test_cases/internal)

行为说明:

  • 源优先来自远程ZIP模板(内置下载链接),失败时自动回退到本地 manage/templates
  • 目录项(如 internal)在 --force 时会先删除再拷贝,确保与模板一致;
  • 未加 --force 时,已存在的文件将被跳过(保护本地改动)。

编译

uv build

发布包

uv publish --publish-url https://mirrors.tencent.com/repository/pypi/tencent_pypi/simple
uv publish

用户安装

uv tool install utest-auto-manage --index-url https://pypi.tuna.tsinghua.edu.cn/simple --extra-index-url https://mirrors.tencent.com/repository/pypi/tencent_pypi/simple

Download files

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

Source Distribution

utest_auto_manage-0.3.5.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

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

utest_auto_manage-0.3.5-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file utest_auto_manage-0.3.5.tar.gz.

File metadata

  • Download URL: utest_auto_manage-0.3.5.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for utest_auto_manage-0.3.5.tar.gz
Algorithm Hash digest
SHA256 fd5f091e6acbbbf953e822a5f5a7acf521002c1820bb164cec8e61a7675dedfd
MD5 ab3054fda731d08dc9fa45e11b8a9656
BLAKE2b-256 e561e4408a832b775506b7baa8b3c8e7c372a3c140137cc797f890f72dd31707

See more details on using hashes here.

File details

Details for the file utest_auto_manage-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: utest_auto_manage-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for utest_auto_manage-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 76ff7b6b2c17e410bfaa575a78f0c2f22a7cd8a5a3837a561ef1163eb57f17fd
MD5 b67ac719f34c2e7a1ebc28759630f9ed
BLAKE2b-256 c2fdde83624d7ed2fa0fd103729716b7bc83c5aa8174a506bef21613d03797da

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.7

2 files

0.3.6

2 files

This release

0.3.5 This release

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page