Tag Archives: EUnit

  • Automated testing with Erlang (“these go to eleven”)
    2012-11-05 Erlang Central

    Videos



    Erlang is designed for building massively scalable and highly available soft real-time systems. Unsurprisingly , Erlang provides us with powerful libraries for automated testing of these type of systems. In this talk, we take a look at three of the popular automated testing libraries for Erlang, discuss their individual strengths and weaknesses and illustrate the importance of continuous integration by deploying sample automated tests to Travis-CI, a free continuous integration service for the ...


    Read more


  • QuickCheck for EUnit
    2012-03-02 Erlang Central

    Videos



    We are all used to writing EUnit test cases, but are they good enough? Are we missing some relevant unit tests in our test suite? With the bluefringe algorithm one can compute a state machine that describes the tests in the suite and additional tests that seems to hold as well. By using QuickCheck as an underlaying motor, one can then generate EUnit tests that improve your test suite. Together QuickCheck and bluefringe form a useful pair for those that want to learn writing QuickCheck stat ...


    Read more


  • Tutorial: Easy Cover and EUnit – testing with ErlIde
    2011-10-31 Erlang Central

    Presentations

    EUnit and Cover are popular testing tools used in day to day Erlang software development. They are the text tools that present results in an inflexible way. They also require one to put some effort on configuration prior to use. In this tutorial we will show how to simplify testing and coverage analysis with EUnit and Cover using a graphical plugin integrated into ErlIde, the Eclipse plugin for Erlang developers. Through a few exercises you will become familiar with its capabilities. ...


    Read more


  • Tutorial: Quickcheck for EUnit
    2011-10-31 Erlang Central

    Presentations

    Writing EUnit tests is more common than writing QuickCheck specifications, although QuickCheck specifications potentially explore far more scenarios than manually written unit tests. In particular for implementations that have side-effects, writing a good set of EUnit tests is often difficult and labour intensive. In this tutorial  we explain a mechanism to extract QuickCheck specifications from EUnit test suites. We use the QSM algorithm to infer state machines from sets of positive and neg ...


    Read more


  • Tools@Klarna
    2010-11-17 Erlang Central

    Videos



    Klarna (currently) operates in six countries. We need to handle translations of PDF's, GUI, Emails, etc. The basis of our i18n system is built around the gettext Erlang application. To help us coordinate the translation work with the development process, we have developed a web-based tool named POlish. With POlish, translators can do their work from anywhere while still cooperating with a particular developer. POlish is released as Open Source and will be described in this talk. As part of it ...


    Read more


  • Webmail for millions, powered by Erlang
    2010-03-22 Erlang Central

    Videos



    How do you design and implement a custom, complex web-based email system that must be robust, scalable across dozens of machines, and support two million users at the start?  The small size of your entire staff is a handicap.  Everything must be tested to the rigorous standards of telecom giant in Asia which overlooks very, very few details. I'll describe one way to do it, using Erlang at its heart for: * Communicating with the Web browser client * Speaking SMTP, POP, and IMAP to the re ...


    Read more


  • Tutorial – Wrangler
    2009-11-13 Erlang Central

    Presentations

    Wrangler is a refactoring tool which supports interactive refactoring for Erlang programs. It is integrated with both Emacs and Eclipse. Wrangler supports a variety of refactorings: Rename variable, module, function, process; Generalise function definition, Move function from a module to another; Function/ Macro extraction, Fold expressions against function/macro; Tuple function parameters, etc. Apart from refactorings, Wrangler also provides functionalities for "bad smell" detection ...


    Read more


  • EUnit Howto: tips, tricks and news
    2009-04-27 Erlang Central

    Videos

    Recently, the EUnit unit testing framework for Erlang was shipped for the first time as an official part of the Erlang/OTP distribution. While the documentation is fairly complete, it is not always obvious how the various features are supposed to be used in practice. Richard Carlsson, the author of Eunit, will in his talk focus on getting Eunit up and running, tweaking it to fit your build environment, and leveraging its features in typical testing situations. He will also briefly present s ...


    Read more