Skip to content

Rewrite tests with dash testing #153

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

Merged
merged 28 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d4d38e6
Rename package-info.json to package.json
kinimesi Aug 16, 2021
1017413
added directory for CircleCI build screenshots
kinimesi Aug 16, 2021
fcc9ed3
circleci to cimg
kinimesi Aug 17, 2021
bc77fe5
circleci to cimg for python 3.7
kinimesi Aug 17, 2021
cfa959a
install browser tools
kinimesi Aug 17, 2021
387a92b
fix syntax
kinimesi Aug 17, 2021
fa914b5
update node version
kinimesi Aug 17, 2021
b147ef7
Update config.yml
kinimesi Aug 17, 2021
2d5c6b4
install chrome driver for python 3.6
kinimesi Aug 17, 2021
67a9cab
Update config.yml
kinimesi Aug 17, 2021
8b5596d
install chrome for chrome-driver
kinimesi Aug 17, 2021
91ca08b
change cache keys
kinimesi Aug 17, 2021
8635417
make the nested functions class methods of Test #38
kinimesi Aug 18, 2021
295f184
revert CI config back
kinimesi Aug 18, 2021
26c7dda
fix syntax
kinimesi Aug 18, 2021
74eebc7
add no-sandbox option to chrome in tests
kinimesi Aug 19, 2021
32ad5d2
make chrome headless
kinimesi Aug 19, 2021
dae20a6
initialize the app in setUpClass #38
kinimesi Aug 19, 2021
f612bac
break down the interactions tests into separate tests #38
kinimesi Aug 20, 2021
ad6d4e8
rewrite tests with dash[testing] #118
kinimesi Aug 23, 2021
679f71a
fix pylint
kinimesi Aug 23, 2021
36b2ede
specify pylint version in reqs
kinimesi Aug 23, 2021
c83c330
replace position with renderedPosition
kinimesi Aug 23, 2021
3581c83
set window size in interaction tests
kinimesi Aug 23, 2021
fa3e100
run percy tests with nopercyfinalize
kinimesi Sep 9, 2021
1dffb96
set PERCY_PARALLEL_TOTAL to -1
kinimesi Sep 9, 2021
1a683f8
removed classes, use functions instead and utilize pytest.mark.parame…
kinimesi Sep 21, 2021
cd49cb5
Merge branch 'master' into rewrite-tests-with-dash-testing
kinimesi Oct 6, 2021
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
20 changes: 16 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
version: 2

jobs:
"percy-finalize":
docker:
- image: percyio/agent
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
steps:
- run: percy finalize --all
"node":
docker:
- image: circleci/node:8.11.3
Expand Down Expand Up @@ -38,6 +46,7 @@ jobs:

environment:
PERCY_ENABLED: True
PERCY_PARALLEL_TOTAL: -1

steps:
- checkout
Expand Down Expand Up @@ -81,28 +90,28 @@ jobs:
name: Integration Tests - Usage Apps Rendering
command: |
. venv/bin/activate
python -m unittest tests.test_usage
pytest --nopercyfinalize --headless tests/test_usage.py
when: always

- run:
name: Integration Tests - Interactions
command: |
. venv/bin/activate
python -m unittest tests.test_interactions
pytest --headless tests/test_interactions.py
when: always

- run:
name: Integration Tests - Callbacks
command: |
. venv/bin/activate
python -m unittest tests.test_callbacks
pytest --headless tests/test_callbacks.py
when: always

- run:
name: Capture Percy Snapshots
command: |
. venv/bin/activate
python -m unittest tests.test_percy_snapshot
pytest --headless tests/test_percy_snapshot.py
when: always

"python-3.7":
Expand All @@ -127,3 +136,6 @@ workflows:
context: dash-docker-hub
- "node":
context: dash-docker-hub
- "percy-finalize":
requires:
- "python-3.6"
95 changes: 0 additions & 95 deletions tests/IntegrationTests.py

This file was deleted.

3 changes: 1 addition & 2 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ ipdb
percy
selenium
flake8
pylint
pytest-dash>=2.1.1
pylint==2.9.*
colour==0.1.5
biopython>=1.77;python_version>="3.0"
biopython==1.76;python_version=="2.7"
Expand Down
3 changes: 3 additions & 0 deletions tests/screenshots/interactions/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is directory is reserved for screenshots generated by Selenium's webdriver in `test_usage.py`, during the CircleCI builds.

Please do not add unecessary files to this directory (in fact, the only file should be this `readme.md`), and do not move this file.
Loading