amberframework / amber

A Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
https://amberframework.org
MIT License
2.57k stars 204 forks source link

Automatically Create and Migrate Test Databases on Linux #1352

Open HCLarsen opened 8 months ago

HCLarsen commented 8 months ago

On Linux, when running specs in an Amber app, no test database is created or migrated, resulting in an error of a missing database. Since the commands of amber db create and amber db migrate only create and migrate the development database, the current workflow requires manually creating and migrating the test database separately.

To speed up the workflow, it would be beneficial to having the creation and migration of test databases happen automatically, either when running the commands for the development database, or when running the specs.