boss_db
boss_db copied to clipboard
Tests don't run for Postgres
I created the boss_test database as per the config files, and ran the make line to run those tests. It just sat there. So I tried running things by hand:
2> boss_db_test:start().
{error,{"no such file or directory","boss_db_test.app"}}
Not sure how to get it to create an .app file, seeing as how there's already one there, for boss_db itself.
One of the reasons is because boss_test is not included in bossdb.. https://github.com/evanmiller/ChicagoBoss/blob/master/src/boss_test/boss_test.erl
To kick off mock test, you can do
boss_db_test_app:start([],[]).
IMHO, the reason there is no boss_db_test.app is because rebar doesn't like multiple apps in same src folder.