Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.4.1 #41

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build
allure_docx.egg-info
__pycache__/
.idea/
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.4.2] - 2023-11-24
### Changed
- added feature to remove summary overview/table
- added warning if Libre Office version < 7 is used
### Fixed
- fixed duration bug

## [0.4.1]
### Changed - 2023-10-09
- switched order of printing steps and attachments (1. steps, 2. attachments)
- added steps configuration variable

- Fixed issue with missing testCaseId

## [0.4.0] - 2023-01-19
### Changed
- Configuration is now controlled with .ini files
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ When using a custom configuration the standard configuration is used as base and
The standard file looks like this:
```
[info]
tests = fbpsu
description = fbpsu
details = fbpsu
trace = fbpsu
Expand All @@ -58,10 +59,14 @@ body = fbpsu
teardown = fbpsu
duration = fbpsu
attachments = fbpsu
steps = fbpsu
[labels]
severity = fbpsu
[cover]
title = Allure
[summary]
overview = 1
table = 1
[details]
```

Expand All @@ -71,7 +76,8 @@ The report will display tests with the specified field (info and labels section)
|--------|--------|--------|---------|---------|
| f | b | p | s | u |

There are some additional information you can add to your report. This includes following:
Change overview or table in the summary section to 0 if you want to remove them from the report.
There are also some additional information you can add. This includes following:

<details>
<summary style="font-weight: bold">Add custom labels</summary>
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ git+https://github.com/pyinstaller/pyinstaller.git#egg=pyinstaller

click~=8.1.3
setuptools~=60.2.0
python-docx~=0.8.11
python-docx~=1.0.1
matplotlib>=3.0, < 4.0
pytest~=7.2.0
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
name="allure-docx",
description="Docx report generator based on allure-generated json files.",
author="Victor Maryama (Typhoon HIL, Inc), Bjarne Scheimann (Fraunhofer Institute for Solar Energy Systems ISE)",
version="0.4.0a1",
version="0.4.2",
license="MIT",
install_requires=[
'setuptools-git~=1.2',
'matplotlib>=3.0, < 4.0',
'docx2pdf~=0.1.8',
'click',
'python-docx',
'click~=8.1',
'python-docx~=1.0.1',
],
extras_require={
'dev': ['pyinstaller'],
Expand Down
1 change: 1 addition & 0 deletions src/allure_docx/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def __init__(self, tag: ConfigTags = None, config_file: str = None):
raise ValueError("Cannot initialize ReportConfig with both tag and file.")

self.config_parser = ConfigParser()
self.config_parser.optionxform = str
if tag:
self.config_parser.read(tag.value)
else:
Expand Down
5 changes: 5 additions & 0 deletions src/allure_docx/config/compact.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[info]
;failed broken passed skipped unknown
tests = fbpsu
description = fbpsu
details = fbpsu
trace = fbpsu
Expand All @@ -10,8 +11,12 @@ body = /
teardown = /
duration = fbpsu
attachments = fbpsu
steps = /
[labels]
severity = fbpsu
[cover]
title = Allure
[summary]
overview = 1
table = 1
[details]
5 changes: 5 additions & 0 deletions src/allure_docx/config/no_trace.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[info]
;failed broken passed skipped unknown
tests = fbpsu
description = fbpsu
details = fbpsu
trace = /
Expand All @@ -10,8 +11,12 @@ body = fbpsu
teardown = fbpsu
duration = fbpsu
attachments = fbpsu
steps = fbpsu
[labels]
severity = fbpsu
[cover]
title = Allure
[summary]
overview = 1
table = 1
[details]
5 changes: 5 additions & 0 deletions src/allure_docx/config/standard.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[info]
;failed broken passed skipped unknown
tests = fbpsu
description = fbpsu
details = fbpsu
trace = fbpsu
Expand All @@ -10,8 +11,12 @@ body = fbpsu
teardown = fbpsu
duration = fbpsu
attachments = fbpsu
steps = fbpsu
[labels]
severity = fbpsu
[cover]
title = Allure
[summary]
overview = 1
table = 1
[details]
5 changes: 5 additions & 0 deletions src/allure_docx/config/standard_on_fail.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[info]
;failed broken passed skipped unknown
tests = fbpsu
description = fbpsu
details = fbpsu
trace = fbpsu
Expand All @@ -10,8 +11,12 @@ body = fbu
teardown = fbu
duration = fbpsu
attachments = fbpsu
steps = fbpsu
[labels]
severity = fbpsu
[cover]
title = Allure
[summary]
overview = 1
table = 1
[details]
Loading