News for hackers. Stuff that matters.
Re:Erlang MMORPG Engine by steamboiler on Tuesday December 08, 2009 @02:19AM (#983260)
I recently got introduced to Erlang and have a question. How do you unit test your code? I recall reading that the CouchDB author was obliged to use JavaScript for automating his unit tests. What was your experience?
Re:Erlang MMORPG Engine by evgen on Tuesday December 08, 2009 @02:19PM (#984379)
eunit is good for simple functional tests (etap is another option here) but it is not really sufficient for testing things like gen_servers and more complex behavior. OTP includes a testing framework (common test) that does these sorts of tests and is in fact used to test the rest of OTP, but it is a PITA to configure and documentation is rather thin so most people opt for low-level eunit tests and hope for the best when it comes to the more complicated bahaviors of the system...
Re:Erlang MMORPG Engine by roder on Tuesday December 08, 2009 @02:58AM (#983290)
Look at eunit
Re:Erlang MMORPG Engine by steamboiler on Tuesday December 08, 2009 @05:58AM (#983429)
Thanks. Checking it out presently.