[erlang-questions] [ANN] etest and etest_http 1.0.0.beta
Wed Jun 13 14:15:42 CEST 2012
Hi John-Paul & Wooga Team,
Thanks for sharing.
I played a bit with etest_http and found it very useful.
How one çan use these macros under CommonTest?
Are you planning to add any stateful feature to it (eg. to be able to play or replat full HTTP sessions) ?
Anyway, well done guys.
On Jun 13, 2012, at 11:29 AM, John-Paul Bader wrote:
> at Wooga we are writing erlang backends with http api's and in the past we've taken several approaches to test those applications properly. There was some combination of using eunit for unit and ruby for integration testing for example or a mixture of eunit, ct and ruby.
> In one of our teams we have now written a super lightweight test framework that makes it easier to do test-driven development with erlang for those kind of applications.
> The base framework is called etest. It includes basic assertion macros and a test-runner. In addition to that we wrote a supplementary library that makes testing http apis much easier. Its called etest_http and as the name suggests, has etest as a dependency.
> In my team we are using it instead of eunit/ct/ruby now and by announcing it here I hope some of you will also take a look to provide some feedback. It is also fairly simple to convert an eunit test case to etest and vice versa - after all its not that different to eunit.
> Somehow the tests just look cleaner, the runner is about 100 lines of code and its more fun (at least for my team) to write tests with it.
> I also made a small screencast that shows how to set up etest.
> A video demonstrating etest_http will follow shortly.
> So please take a look and let me know what you think!
> ~ John
> erlang-questions mailing list
More information about the erlang-questions