We use pytest to run our tests. Our tests are all located in the tests directory in the repo, and are meant to be run after installing Fonduer locally.

In order to run the tests, you will need to create the local databases used by the tests:

$ createdb e2e_test
$ createdb cand_test
$ createdb feature_test
$ createdb meta_test
$ createdb inc_test
$ createdb visualizer_test

You’ll also need to download the external test data:

$ cd tests/
$ ./download_data.sh
$ cd ..

Then, you’ll be able to run our tests:

$ make test