How can we run all of the Python tests from the Hummingbot repository?

Author: Danilo 0x286

Original Post Date: 9 Jun 2022

What would be the correct way of running the hummingbot python tests from the terminal?

I have already tried some variations here but no success yet.

I’m using the latest changes from the development branch.

For example, one of the attempts was the following:

$ python -m unittest discover -s test -p “test_*.py” … ModuleNotFoundError: No module named ‘hummingbot.client.config.global_config_map’ … ModuleNotFoundError: No module named ‘hummingbot.connector.exchange.bitfinex.bitfinex_api_order_book_data_source’ … Ran 301 tests in 0.016s FAILED (errors=301)

Where the main problem is the module not found errors

Author: rapcmia 0x88e

Hi Danilo,

We did this kind of test before going to the “test” folder on the source and looking for the file our dev created. What we would normally do is to run nosetests -d -v TEST_FILE

The sample image below:

Author: jamesPmagic 0x4eF

“Module not found” error might mean that the code hasn’t been compiled yet.

Author: Dardonacci 0x78a

when I have to run the test I use: make test