Re: [chicagoboss] Unit Tests for models

35 views
Skip to first unread message

Jose Luis Gordo Romero

unread,
Oct 30, 2012, 3:25:37 AM10/30/12
to chica...@googlegroups.com
Hi Alex,

You can test your model's and lib's with eunit:
Place your app_model_tests.erl in src/test/eunit and run them calling ./rebar boss c=test_eunit (you need a boss.test.config in the app root dir)

Best

--
Jose Luis Gordo Romero



2012/10/29 <xelar...@gmail.com>
Hey, I am fairly new to CB and start messing around. To me some of the real important stuff is to validate the integrity of the data, e.g. uniqueness of values and such.
The tests and assertions I saw until now cared more for http_responses. Is there an example out the for stuff I would like to test, maybe with testing database as well (just as the three different databases used in rails).

Thanks a lot in advance

Alex

--
 
 

Reply all
Reply to author
Forward
0 new messages