- Install the required shards:
$ shards install
- Run tests against PostgreSQL:
$ sudo -u postgres createdb rome_test
$ export DATABASE_URL=postgres://postgres@/rome_test
$ crystal run test/*_test.cr
- Run tests against MySQL:
$ mysqladmin create rome_test -u root --default-character-set=utf8mb4
$ export DATABASE_URL=mysql://root@/rome_test
$ crystal run test/*_test.cr