Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 899 Bytes

DEVELOPMENT.md

File metadata and controls

54 lines (35 loc) · 899 Bytes

Dependencies

See INSTALL.md

Configuration

See MAINTENANCE.md

Tests

The tests are run against SQLite and PostgreSQL.

PostgreSQL Environment

The PostgreSQL tests need to be run via an existing user. The defaut is postgres. You can supply an alternative user name via the PG_USER environment variable.

E.g.

$ PG_USER=postgres rake test

The user must be set up to access the database without a password.

You can supply PG_HOST if your PostgreSQL is not running locally.

You can supply PG_PORT if your PostgreSQL is not running on port 5432.

Running a selection of tests

$ PG_USER=postgres GTEST_FILTER=<<class>>.<<test|*>> rake test

Linter

Dependencies:

  • clang-tidy-6.0

Run linter:

clang-tidy-6.0 \
  src/**/*.cpp \
  -- \
  -DAR_POSTGRES \
  -DAR_SQLITE \
  -Iinclude \
  -Iinclude/postgresql \
  -Iinclude/postgresql/server