Skip to content

Latest commit

 

History

History
52 lines (43 loc) · 1.5 KB

INTEGRATION_TESTS.md

File metadata and controls

52 lines (43 loc) · 1.5 KB

Running Integration Tests

This repo includes integration tests in the spec/utils directory. Here, there are tests for more deimos features that include a database integration like

You will need to set up the following databases to develop and create unit tests in these test suites.

SQLite

This database is covered through the sqlite3 gem.

MySQL

Setting up a local MySQL server (Mac)

# Download MySQL (Optionally, choose a version you are comfortable with)
brew install mysql
# Start automatically after rebooting your machine
brew services start mysql

# Cleanup once you are done with MySQL
brew services stop mysql

PostgreSQL

Setting up a local PostgreSQL server (Mac)

# Install postgres if it's not already installed
brew install postgres

# Initialize and Start up postgres db
brew services start postgres
initdb /usr/local/var/postgres
# Create the default database and user
# Use the password "root"
createuser -s --password postgres

# Cleanup once done with Postgres
killall postgres
brew services stop postgres

Running Integration Tests

You must specify the tag "integration" when running these these test suites. This can be done through the CLI with the --tag integration argument.

rspec spec/utils/ --tag integration