Open natefinch opened 7 years ago
The gnorm/database code needs live database tests (run mysql, use gnorm/database/mysql to query it, verify the results are as expected).
Tests that run against a live database should be marked with a build tag thusly:
// +build <database_name>
So that they are only run when requested, since they require outside setup.
Ideally these tests would have idempotent functions to set up docker etc. so that first time devs have the easiest time to onboard.
The gnorm/database code needs live database tests (run mysql, use gnorm/database/mysql to query it, verify the results are as expected).
Tests that run against a live database should be marked with a build tag thusly:
So that they are only run when requested, since they require outside setup.
Ideally these tests would have idempotent functions to set up docker etc. so that first time devs have the easiest time to onboard.