_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
http://erlcode.wordpress.com/2010/08/30/erlang-eunit-introduction/
and go on in accordance to the dates.
Cheers
G
For apps with little internal state, a simple test() method is usually
considered enough (if you look at what people actually do).
As the system gains more internal state, people move to eunit,
quicktest, test_server etc.
It all depends on what's really necessary in practice (rather than
observing some notional consideration of required ceremony which, in
many circumstances, may be a total waste of everyone's time).
/s
On Dec 20, 10:38 am, "Yves S. Garret" <yoursurrogate...@gmail.com>
wrote:
> Hi all,
>
> Recently I started working on unit testing for CakePHP and this got met
> wondering, what unit testing apps are there for Erlang?
>
> I've found these sources:
>
> 1.http://www.erlang.org/doc/apps/eunit/chapter.html
> 2.
> http://armstrongonsoftware.blogspot.com/2009/01/micro-lightweight-uni...
>
> Anything else? Does anyone know if any Erlang programming books out
> there cover this topic in some detail?
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@erlang.orghttp://erlang.org/mailman/listinfo/erlang-questions
On Dec 20, 6:41 pm, Steve Davis <steven.charles.da...@gmail.com>
wrote:
-- given the general unreliability of software nowadays -- some (any?) form of testing is highly prized in the software development process.
---
Well, we use a combination of eunit, some adhoc load generators, and pathogical random event generator scripts. None of this really matters though if you don't properly identify the problem you are solving and characterize the production behavior.
Software testing does little in my experience but confirm apriori bias and serve to limit refactoring necessary for proper engineering. If you find yourself hesitating to write an alternative implementation to test a theory, you've written too many tests.
If you program follow contract based programming practices, and test only well defined interfaces (and not internal details, also referred to as black box testing) you'll get more bang for your buck. But this usually requires versioning all of your API calls.
Hope this helps
Dave
I'd recommend to use QuickCheck (http://www.quviq.com/) and/or PropEr (http://proper.softlab.ntua.gr/) for testing Erlang and non-Erlang applications. Just in case no one else has mentioned either of these tools to you.
-- Jesper Louis Andersen Erlang Solutions Ltd., Copenhagen, DK