Must have diesel-cli installed
sudo apt-get update
sudo apt-get install mysql-server libpq-dev libmysqlclient-dev sqlite3 libsqlite3-dev
cargo install diesel_cli
Must have your own .env file containing (DATABASE_URL=mysql://username:password@localhost/acbidder_database)
echo DATABASE_URL=mysql://username:password@localhost/acbidder_database
Must have clean tables for running tests
diesel setup
diesel migration run
or
diesel migration redo
Must change the account and registry address in adchain_registry.rs
Must do tests using 1 thread
cargo test -- --test-threads=1