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
I'm working on running the tests for icepyx and I'm looking for some guidance. I hit some errors so I'm wondering if these are expected when running the tests outside of Travis and, if they are, how easy it would be for someone to set up a local configuration that would allow them to run the tests successfully. While not necessary, it would be nice to have as someone trying to add to the package without breaking stuff 🙂
Process thus far
The steps I've identified thus far are:
clone/fork the icepyx repository
create a local enviroment conda create -n icepyx-dev (do we have a recommended version of python?)
install the dev requirements doc conda install --file requirements-dev.txt (it's possible steps 2 and 3 could be combined, but I haven't tested this)
install a local editable version of icepyx in the development environment pip install -e . from inside the environment
navigate to the folder icepyx/tests
run all the tests with pytest .
Result
When I do this locally right now on the development branch I get 2 failed tests and 2 errors:
For the two test_behind_NSIDC_API_login.py errors I'm wondering if the errors are related to the fact that Travis CI might have stored credentials. Is that the case? If so, any recommendations for users to setup their environment to emulate the test environment?
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
-
Goal
I'm working on running the tests for icepyx and I'm looking for some guidance. I hit some errors so I'm wondering if these are expected when running the tests outside of Travis and, if they are, how easy it would be for someone to set up a local configuration that would allow them to run the tests successfully. While not necessary, it would be nice to have as someone trying to add to the package without breaking stuff 🙂
Process thus far
The steps I've identified thus far are:
conda create -n icepyx-dev
(do we have a recommended version of python?)conda install --file requirements-dev.txt
(it's possible steps 2 and 3 could be combined, but I haven't tested this)pip install -e .
from inside the environmenticepyx/tests
pytest .
Result
When I do this locally right now on the
development
branch I get 2 failed tests and 2 errors:test_behind_NSIDC_API_login.py
errorsFor the two
test_behind_NSIDC_API_login.py
errors I'm wondering if the errors are related to the fact that Travis CI might have stored credentials. Is that the case? If so, any recommendations for users to setup their environment to emulate the test environment?test_read.py
failed testsOutput from one of the
test_read.py
errors is:Summary
If we land on a standard way of running local tests I'd be happy to add a page to the Contributor docs for how to set it up!
Beta Was this translation helpful? Give feedback.
All reactions