Closed jluttine closed 6 years ago
In general, the tests are not guaranteed to pass unless they are run inside tox
which sets up the appropriate environments. I'm not necessarily opposed to doing extra work to have the tests pass in unexpected environments, but running outside of tox may stop working again in the future.
I'm not familiar with tox. How would I test that the package I installed is working when I don't care about other environments? Typically, I'd run something like py.test tests
in the source directory but how is it done with tox in eth-hash
?
After you do the dev environment setup, you can run the command tox
at the shell in the source directory, which will run all the tests.
You can run tox -epy36-core
to run just one of the test batches. You can see the available environments with tox -l
. Tox defines the environments and test commands that the tests run with tox.ini: https://github.com/ethereum/eth-hash/blob/master/tox.ini
What was wrong?
Some unit tests in
test_import.py
fail.Code that produced the error
Full error output
Environment