Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Unit Tests for models
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
xelarel...@gmail.com  
View profile  
 More options Oct 29 2012, 6:56 pm
From: xelarel...@gmail.com
Date: Mon, 29 Oct 2012 15:56:03 -0700 (PDT)
Local: Mon, Oct 29 2012 6:56 pm
Subject: Unit Tests for models

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jose Luis Gordo Romero  
View profile  
 More options Oct 30 2012, 3:25 am
From: Jose Luis Gordo Romero <jgor...@gmail.com>
Date: Tue, 30 Oct 2012 08:25:37 +0100
Local: Tues, Oct 30 2012 3:25 am
Subject: Re: [chicagoboss] Unit Tests for models

Hi Alex,

You can test your model's and lib's with eunit:

   - http://www.erlang.org/doc/apps/eunit/chapter.html

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
@jgordor <http://twitter.com/jgordor> - http://www.freemindsystems.com

2012/10/29 <xelarel...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic