Skip to content

Commit 1a9865d

Browse files
committed
Tests refactoring, moved to tests dir, coverage
1 parent ace209c commit 1a9865d

File tree

95 files changed

+529
-568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+529
-568
lines changed

.coveragerc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[run]
2+
omit =
3+
tests/*
4+
venv/*

.github/workflows/jdi-python.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ jobs:
3030
pip install -r requirements-dev.txt
3131
- name: Download Chrome driver
3232
run: |
33+
cd utils
3334
python get_driver.py
3435
# TODO: use virtual machine for tests run
35-
# - name: Run tests
36-
# run: |
37-
# python -m unittest Test\jdi_uitests_webtests\test\run_all_tests.py -v
36+
- name: Run unit tests
37+
run: |
38+
pytest -v --cov=. --cov-config=.coveragerc --cov-report=html -m unit
3839
shell: cmd
3940
- name: Save debug log file
4041
uses: actions/upload-artifact@v2

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ __pycache__/
1515
.vscode/
1616
venv/
1717
*.log
18+
htmlcov/
1819

1920
# ReSharper files
2021
*.DotSettings.user

Test/jdi_uitests_webtests/main/page_objects/pages/__init__.py

-6
This file was deleted.

Test/jdi_uitests_webtests/test/complex/dropdown_expanded_tests.py

-68
This file was deleted.

Test/jdi_uitests_webtests/test/complex/dropdown_tests.py

-67
This file was deleted.

Test/jdi_uitests_webtests/test/complex/radio_button_tests.py

-66
This file was deleted.

Test/jdi_uitests_webtests/test/complex/selector_tests.py

-66
This file was deleted.

Test/jdi_uitests_webtests/test/complex/table/search_rows_columns_tests.py

-73
This file was deleted.

0 commit comments

Comments
 (0)