Skip to content

Commit c80146e

Browse files
committed
Introduce allure integration
1 parent 6e12601 commit c80146e

File tree

7 files changed

+18
-4
lines changed

7 files changed

+18
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ venv
1818
test-report.html
1919
assets/
2020
.coverage
21+
report/
2122

2223
# browser trash
2324
geckodriver.log

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before_install:
1010
# Install dependencies
1111
- sudo apt-get install -y chromium-browser
1212
# Install ChromeDriver (64bits; replace 64 with 32 for 32bits).
13-
- wget -N http://chromedriver.storage.googleapis.com/2.30/chromedriver_linux64.zip -P ~/
13+
- wget -N http://chromedriver.storage.googleapis.com/78.0.3904.105/chromedriver_linux64.zip -P ~/
1414
- unzip ~/chromedriver_linux64.zip -d ~/
1515
- rm ~/chromedriver_linux64.zip
1616
- sudo mv -f ~/chromedriver /usr/local/share/

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ From the root directory of your shell run following commands:
3232
~ ./run-tests.sh all
3333
```
3434

35-
### Tests report sample
36-
Run a bunch of tests via following command:
35+
### Tests (html) report sample
36+
Run a bunch of tests (e.g smoke) via following command:
3737
```bash
3838
~ ./run-tests.sh smoke
3939
```
@@ -42,8 +42,18 @@ After please open `test-report.html` file to see detailed testing report:
4242

4343
![Screenshot](image/report.png)
4444

45+
### Generate allure report
46+
Please follow next instruction to generate allure report (mac OS example):
47+
1. Update java via `brew cask install adoptopenjdk`
48+
2. Install allure via `brew install allure`
49+
3. Generate allure project via `allure serve report`
50+
51+
![Screenshot](image/allure.png)
52+
4553
## Release History
4654

55+
* 0.3.0
56+
* Introduce allure integration
4757
* 0.2.0
4858
* Introduce travis CI
4959
* Add static code analysis tools (`black`, `flake8` and `mypy`) along with unittests

image/allure.png

105 KB
Loading

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ addopts = -rsxX
1010
--self-contained-html
1111
--html=test-report.html
1212
--cov=demo
13+
--alluredir report

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ pytest-metadata==1.8
55
black==19.10b0
66
coveralls==1.8.2
77
flake8==3.7.9
8-
mypy==0.740
8+
mypy==0.740
9+
pdbpp==0.10.2

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pytest-cov==2.8.1
44
pytest-metadata==1.8
55
pytest-html==2.0.0
66
pytest-clarity==0.2.0a1
7+
allure-pytest==2.8.6

0 commit comments

Comments
 (0)