Closed renich closed 4 years ago
Hi @renich Thanks for reporting this. This is because the test database was not created or migrated. Currently this is set in the test
environment. This is similar to how rails works. After you create and migrate the development database, run:
AMBER_ENV=test amber db create migrate
If you do not want the specs to automatically run and prefer running those manually, you can remove it from the watch command by editing the .amber.yml
file.
Closing this issue given the problem was answered above
Description
After creating the sample app (with sqlite), it tries to run some tests and fails due to the database not existing yet.
Steps to Reproduce
Expected behavior: [What you expect to happen] Stuff should just work
Actual behavior: [What actually happens] There is a route error and what appears to be spec errors.
Reproduces how often: [What percentage of the time does it reproduce?] Happens every time.
Versions
Amber CLI (amberframework.org) - v0.35.0 Crystal 0.35.0 (2020-06-09)
LLVM: 10.0.0 Default target: x86_64-unknown-linux-gnu
Additional Information
Here's a test run: