Tool used to generate a test reports.
Project description
lupin_sw_ut_report
This project converts test files (in .txt and .xml formats) into Markdown reports. The goal is to facilitate the documentation of software test results by providing readable Markdown files that can be used for comprehensive reporting.
Features
- TXT and XML File Conversion: Converts test files into structured Markdown files for better readability.
- Support for Given-When-Then Formats: Parses and converts test files defined using the
Given,When,Thenformat. - Combined Report Generation: Creates a single Markdown file summarizing all tests found in the specified folder.
- Command-Line Interface (CLI) with Typer: A CLI tool for easy execution of conversions.
Installation
Run pip install lupin-sw-ut-report
Usage
This project provides a command-line interface to generate reports from a folder containing test files (.txt and .xml).
To run the script, use the following command:
sw-ut-report --input-folder <path/to/your/input-folder>
Publishing to PyPI
To publish this package to PyPI, follow these manual steps:
1. Update the Version
You must update the version number in both of these files:
src/sw_ut_report/__init__.py(e.g.,__version__ = "0.1.0")pyproject.toml(e.g.,version = "0.1.0")
Make sure the version numbers match in both files. This is required for a successful and consistent release.
2. Build the Package
Install the build tool if you haven't already:
pip install build
Run the following command from the root of the project:
python -m build
This will generate distribution files in the dist/ directory.
3. Prepare for Upload: PyPI Token and .pypirc
- Create an API token on your PyPI account.
- Create a
.pypircfile in the root of your repository (but do not commit it to git!). - The
.pypircfile is already listed in.gitignoreby default, but always double-check before committing.
Example .pypirc file:
[distutils]
index-servers =
pypi
[pypi]
username = __token__ # Do not change this value; it must remain exactly as shown
password = <your-pypi-api-token-here> # Provide your token without any quotes or extra characters
Replace <your-pypi-api-token-here> with your actual PyPI API token.
- Do not add any quotation marks (
"or') or extra characters around the token. - The line
username = __token__must remain exactly as written.
Important:
- Never share your PyPI token.
- Never commit
.pypircto version control, even if it is already in.gitignore.
4. Upload to PyPI
Install Twine if you haven't already:
pip install twine
Upload your package using Twine and your .pypirc configuration:
twine upload --config-file ./.pypirc dist/*
If successful, your package will be published to PyPI.
Security Reminder
- Keep your PyPI API token secret.
- Do not share your
.pypircfile or its contents. - Always verify you are uploading the correct version and files.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lupin_sw_ut_report-0.1.0.dev11.tar.gz.
File metadata
- Download URL: lupin_sw_ut_report-0.1.0.dev11.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8409a06fe492ec671e2a872158b460669c819a0b2c86e373988d1edf4acf3cb5
|
|
| MD5 |
38f39646d496328da1f2ead02a4d53b9
|
|
| BLAKE2b-256 |
bdb89fabb17406a83f60e20fc37409a723b5d99674b3a6e834dc2771911e68b3
|
File details
Details for the file lupin_sw_ut_report-0.1.0.dev11-py3-none-any.whl.
File metadata
- Download URL: lupin_sw_ut_report-0.1.0.dev11-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4106f0f8ccad08ea104ae73edc36f6e38504157aecf10f141f33dbc7cff1c093
|
|
| MD5 |
02ddf89c609b7366bccbeef173b1f6cb
|
|
| BLAKE2b-256 |
ffa8aadbe7d4f5aad9688dabe78371a63fd5d03b9059c92b7cc4a9fc2b621142
|