Skip to content

Unit Tests need pre-setup databases #67

@SchaichAlonso

Description

@SchaichAlonso

Hi,

While TinyORM has a test suite that completes execution by running ctest -C $config in it's build directory, the majority of tests will be skipped unless at least one of the DB_MYSQL_DATABASE, DB_POSTGRES_DATABASE or DB_SQLITE_DATABASE environment variables defined to a test database that has previously been migrated to the schema used by the tests.

The testdata_tom application can be used in order to apply the corresponding schema migration(s), however, this is not done automatically by the test suite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions