You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are some notes on how Dash testing needs to be set up and run. Dash testing uses GoogleChrome by default and these instructions also use GoogleChrome. See the Dash documentation for more info on the testing api.
Here are the steps to install and run a Dash test using the built in functionality. Note: This was done on MacOS 11.5 intel with Python 3.7.10 and Dash 1.21.0.
Open a new terminal window and navigate to your Python environment for mrsimulator-app.
Type pip install 'dash[testing]' and press enter. This will install optional dependencies essential for running a dash test.
Go to https://chromedriver.chromium.org and download the latest stable version of ChromeDriver. The version of ChromeDriver must match the version of GoogleChrome installed on your machine. Here is info on how to find your GoogleChrome version.
The downloaded file should be named chromedriver. This file needs to be added to your PATH.
Info on moving/linking an executable to your PATH(Recommended)
In terminal run pytest dash_testing/test_example.py. An Unidentified Developer message should pop up. Go to System Preferences > Security & Privacy > General and press Allow Anyway. The pytest will fail. This is expected.
Run pytest dash_testing/test_example.py again. This should open mrsimulator-app and wait on the landing page for a few seconds.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
These are some notes on how Dash testing needs to be set up and run. Dash testing uses GoogleChrome by default and these instructions also use GoogleChrome. See the Dash documentation for more info on the testing api.
Here are the steps to install and run a Dash test using the built in functionality. Note: This was done on MacOS 11.5 intel with Python 3.7.10 and Dash 1.21.0.
pip install 'dash[testing]'
and press enter. This will install optional dependencies essential for running a dash test.chromedriver
. This file needs to be added to yourPATH
.PATH
(Recommended)PATH
variable.mrsimulator-app
directory.pytest dash_testing/test_example.py
. An Unidentified Developer message should pop up. Go to System Preferences > Security & Privacy > General and press Allow Anyway. The pytest will fail. This is expected.pytest dash_testing/test_example.py
again. This should open mrsimulator-app and wait on the landing page for a few seconds.Beta Was this translation helpful? Give feedback.
All reactions