gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
487 stars 40 forks source link

Live DB Tests #6

Open natefinch opened 7 years ago

natefinch commented 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.