ErlyORM / boss_db

BossDB: a sharded, caching, pooling, evented ORM for Erlang
Other
277 stars 137 forks source link

Tests don't run for Postgres #56

Open davidw opened 11 years ago

davidw commented 11 years ago

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.

rambocoder commented 11 years ago

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.