Open ronikobrosly opened 2 months ago
Oops, that documentation is out of date - it should say python -m pytest
rather than python setup.py pytest
, I'll update it.
Even with that change, it's likely that you'll need some extra dependencies for tests - I think pip install pytest pytest-xdist pytest-cov coverage[toml]
will get all of the test runner dependencies, and you'll also need to run pip install jupyter jupyter-client nbconvert nbformat seaborn xgboost tqdm
if you want to run the notebook tests. (You'll also need to have installed the [all]
extra for econml, or else you'll might be missing some package dependencies like tensorflow that are needed only by a smaller subset of our API).
However, as mentioned in that section of the README, it usually does not make sense to run all of the tests, so I'd default to using unittest
to just run the tests for the code that you're working on (but thanks for the bug report, we shouldn't have misleading directions in the README).
Okay thanks for the heads up @kbattocchi !
Hi, I'm working on a PR but first I'd like to make sure I can get all tests running. I followed all of the instructions in the For Developers, Pre-commit hooks, and Running the tests section of the README. When I run the command
python setup.py pytest
I get the following:This is with python 3.8.x. Any suggestions?