https://github.com/nodejs/tap2junit
a tap2junit converter intended for use with node.js jenkins ci
https://github.com/nodejs/tap2junit
Last synced: 9 months ago
JSON representation
a tap2junit converter intended for use with node.js jenkins ci
- Host: GitHub
- URL: https://github.com/nodejs/tap2junit
- Owner: nodejs
- License: apache-2.0
- Created: 2016-11-10T13:09:51.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T11:32:55.000Z (about 2 years ago)
- Last Synced: 2024-10-29T16:13:33.750Z (over 1 year ago)
- Language: Python
- Size: 361 KB
- Stars: 8
- Watchers: 18
- Forks: 12
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A utility that converts [TAP version 12 and 13](https://testanything.org/) to [JUnit](https://junit.org/junit5/). 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
```sh
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install pytest
pip install --editable ".[dev]"
pytest
```