A utility that converts TAP version 12 and 13 to JUnit. That's it.
Project description
A utility that converts TAP version 12 and 13 to JUnit. That's it.
Upstream is currently unmaintained at https://bitbucket.org/fedoraqa/pytap13/src/develop/
The syntax expected is currently pretty custom-tailored for use at https://ci.nodejs.org
Improvements are welcome.
To install from https://pypi.org/project/tap2junit (recommended):
pipx install tap2junit
To install directly from this repo (not recommended):
pipx install --force git+https://github.com/nodejs/tap2junit.git
To run:
tap2junit -i file.tap -o file.xml
tap2junit --help
usage: tap2junit [-h] --input INPUT --output OUTPUT [--compact] [--name NAME] [--package PACKAGE]
optional arguments:
-h, --help show this help message and exit
--input INPUT, -i INPUT
path to tap13 file
--output OUTPUT, -o OUTPUT
output file name
--compact, -c do not prettify the xml output
--name NAME, -n NAME override test suite name
--package PACKAGE, -p PACKAGE
set package for test suite
Suggested code hygiene:
$ ruff --show-fixes --show-source .
$ black .
Running tests locally
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install pytest
pip install --editable ".[dev]"
pytest
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
tap2junit-0.2.0.tar.gz
(487.3 kB
view hashes)
Built Distribution
tap2junit-0.2.0-py3-none-any.whl
(11.0 kB
view hashes)
Close
Hashes for tap2junit-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32f3564f70c456b84dd208c99c21f94d66f50ac8e4bc057d77c7ee9fa861f4c |
|
MD5 | 5cdd66574cb9a368ce570fb58b1ff694 |
|
BLAKE2b-256 | f7d0170752bb5e059eee4c01e39061df12f3d6eb981b1abab727d803e60824b3 |