跳转到主要内容

Ibutsu的一些命令行工具

项目描述

https://img.shields.io/github/v/release/ibutsu/ibutsu-utils https://img.shields.io/pypi/v/ibutsu-utils.svg https://img.shields.io/pypi/pyversions/ibutsu-utils.svg

Ibutsu Utilities

Ibutsu提供的一些命令行工具。目前有两个工具

安装

这些工具可在PyPI上找到,并可使用pip安装

$ pip install ibutsu-utils

下载工具

命令行工具ibutsu-download从Ibutsu下载工件。

$ ibutsu-download -h
usage: ibutsu-download [-h] -H HOST [-t API_TOKEN] [-o OUTPUT] artifact_id

A tool to download an artifact from an Ibutsu server

positional arguments:
  artifact_id           The ID of the artifact to download

options:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  The Ibutsu instance for uploading, e.g. https://my.ibutsu.com/api
  -t API_TOKEN, --api-token API_TOKEN
                        An API token for authentication
  -o OUTPUT, --output OUTPUT
                        The destination to save the file. If omitted will use the current directory and the artifact file name

上传工具

命令行工具ibutsu-upload将JUnit XML或Ibutsu存档上传到Ibutsu。

$ ibutsu-upload --help
usage: ibutsu-upload [-h] -H HOST -p PROJECT [-t API_TOKEN] [-s SOURCE] [-m METADATA] [-w] input [input ...]

A tool to upload a jUnit XML or Ibutsu archive to Ibutsu

positional arguments:
  input                 The file(s) to upload

options:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  The Ibutsu instance for uploading, e.g. https://my.ibutsu.com/api
  -p PROJECT, --project PROJECT
                        The project for the upload
  -t API_TOKEN, --api-token API_TOKEN
                        An API token for authentication
  -s SOURCE, --source SOURCE
                        The source used in the test results
  -m METADATA, --metadata METADATA
                        Additional metadata to set when uploading, in the format of dotted.key.path=value
  -w, --wait            Wait for the upload to complete (by default this command does not wait)

合并工具

某些测试运行器为单个测试运行输出多个JUnit XML文件。工具ibutsu-xmerge将多个XML文件合并为单个文件。

$ ibutsu-xmerge --help
usage: ibutsu-xmerge [-h] [-o OUTPUT] input [input ...]

positional arguments:
  input                 Input files

options:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output to a file. Defaults to stdout without this.

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

ibutsu_utils-0.2.0.tar.gz (6.1 kB 查看哈希值)

上传时间: 源代码

构建分发

ibutsu_utils-0.2.0-py3-none-any.whl (7.5 kB 查看哈希值)

上传时间: Python 3

由以下支持