...

Text file src/github.com/goph/emperror/etc/integration.md

Documentation: github.com/goph/emperror/etc

     1# Running integration tests
     2
     3In order to run integration tests for some of the handlers a local development environment must be configured.
     4Unfortunately it's a little bit more complicated than a "fire and forget" command,
     5but most of it can be done in the CLI.
     6
     7The first part is as easy as executing a series of commands:
     8
     9```bash
    10cp docker-compose.override.yml.dist docker-compose.override.yml
    11docker-compose up -d
    12docker-compose run --rm errbit rake db:seed
    13docker-compose run --rm sentry upgrade --noinput
    14docker-compose run --rm sentry createuser --email admin@example.com --password admin --superuser --no-input
    15```
    16
    17Go to the Sentry dashboard:
    18```bash
    19open http://localhost:32622
    20```
    21
    22Login with `admin@example.com` and `admin` credentials.
    23
    24Complete the setup wizard and add a new test Go project.
    25
    26Create a new `.env.test` file:
    27```bash
    28cp .env.test.dist .env.test
    29```

View as plain text