Skip to content

Commit 4ae2f00

Browse files
Merge pull request #232 from OP-TED/feature/TED-665
Feature/ted 665
2 parents a0a02f4 + 5691698 commit 4ae2f00

5 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/unit-tests-hermes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Get Saxon
2828
run: make init-saxon
2929

30+
- name: Get Allure
31+
run: make install-allure
32+
3033
# - name: Start staging infra
3134
# run: make start-project-services
3235

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,8 @@ tests/test_data/notice_transformer/mapping_suite_processor_repository/test_packa
122122
tests/test_data/notice_transformer/mapping_suite_processor_repository/test_package_fake/transformation/resources/main_activity.json
123123
tests/test_data/notice_transformer/mapping_suite_processor_repository/test_package_fake/transformation/resources/nuts.json
124124
infra/airflow-cluster/requirements.txt
125+
node_modules
126+
tests/reports/allure/report/
127+
tests/reports/allure/test_results/
128+
package-lock.json
129+
package.json

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,7 @@ restore-mongodb:
367367
@ docker exec -it mongodb-${ENVIRONMENT} rm -rf mongodb_dump
368368
@ echo -e "Finish restore data in mongodb."
369369

370+
install-allure:
371+
@ echo -e "Start install Allure commandline."
372+
@ apt install npm
373+
@ npm install -g allure-commandline

requirements.dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ tox~=3.24.5
88
tox-pytest-summary~=0.1.2
99
mongomock==4.0.0
1010
uvicorn[standard]
11+
allure-pytest-bdd==2.10.0
12+

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ commands =
2222

2323
[testenv:features]
2424
commands =
25-
{envpython} -m pytest tests/features
25+
{envpython} -m pytest --alluredir=./tests/reports/allure/test_results/ ./tests/features/
26+
allure generate ./tests/reports/allure/test_results/ --clean -o ./tests/reports/allure/report/
27+
2628

2729
[testenv:e2e]
2830
commands =

0 commit comments

Comments
 (0)