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 was reading through the CI configuration and it seems like a lot of complicated steps are required to run the tests. I'd suggest using something like tox to create a tox.ini file that simplifies the installation of the code and running of the tests and various other tasks like flake8, linting, etc.
Here's an example from one of my projects https://github.com/cthoyt/pystow/blob/main/tox.ini that lets you run tox -e py to run the unit tests from the command line and it takes care of making a virtual env and installing the right dependencies
The text was updated successfully, but these errors were encountered:
@cthoyt Are you able to install the conda environment via conda create -f conda\environment-dev.yml?
Otherwise, you can install the requirements using the requirements.txt file and then run the tests using pytest . in the root folder of the repository.
hechth
changed the title
How to run tests locally?
Consider switching to tox.ini to run tests
Mar 29, 2023
I was reading through the CI configuration and it seems like a lot of complicated steps are required to run the tests. I'd suggest using something like
tox
to create atox.ini
file that simplifies the installation of the code and running of the tests and various other tasks like flake8, linting, etc.Here's an example from one of my projects https://github.com/cthoyt/pystow/blob/main/tox.ini that lets you run
tox -e py
to run the unit tests from the command line and it takes care of making a virtual env and installing the right dependenciesThe text was updated successfully, but these errors were encountered: