Skip to content

Commit bc4435e

Browse files
adding pytest config files and report folder structure
1 parent 84e374c commit bc4435e

File tree

6 files changed

+58
-0
lines changed

6 files changed

+58
-0
lines changed

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
max_complexity = 10
3+
max-line-length = 120
4+
statistics = True
5+
count = True
6+
ignore = W191,E117

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Pycharm trash
2+
.coverage
3+
.idea
4+
__pycache__/
5+
6+
# Distribution
7+
.DS_Store
8+
.cache/

mypy.ini

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[mypy]
2+
python_version = 3.6
3+
warn_return_any = True
4+
warn_unused_configs = False
5+
ignore_missing_imports = True
6+
warn_unused_ignores = False
7+
show_error_codes = True
8+
show_column_numbers = True
9+
pretty = False
10+
color_output = False
11+
error_summary = True
12+
show_absolute_path = True
13+
show_traceback = True
14+
raise_exceptions = True
15+
html_report = html_report
16+
txt_report = txt_report
17+
verbosity = 5

pytest.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[pytest]
2+
markers =
3+
sanity: sanity tests marker
4+
regression: regression tests marker
5+
ui: UI tests marker
6+
api: API tess marker
7+
python_files=*.py
8+
python_functions=test_*
9+
addopts = -rsxX
10+
-q
11+
-v
12+
--self-contained-html
13+
--html=reports/html_report.html
14+
--cov=Tests
15+
--alluredir reports/allure
16+
--clean-alluredir

reports/allure/.keep

Whitespace-only changes.

requirements.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pytest==5.3.2
2+
pytest-cov==2.8.1
3+
pytest-metadata==1.8
4+
pytest-html==2.0.1
5+
pytest-clarity==0.2.0a1
6+
pytest-xdist==1.31.0
7+
lxml==4.4.2
8+
allure-pytest==2.8.6
9+
ipdb == 0.12.3
10+
pyyaml == 5.3
11+
flake8 == 3.7.9

0 commit comments

Comments
 (0)