Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A public book on testing Erlang
Erlang Shell Makefile
Branch: master
Failed to load latest commit information.
eunit/src test with fixtures
eunit_code_coverage/src example module
examples Working on the outline, more on dialyzer
images Add new image
meck/src simple example
proper improving examples and content
.gitignore ignore some basic file types
00_preface.asciidoc types of bugs
01_rebar.asciidoc Organize Chapters
02_eunit.asciidoc improving examples and content
03_common_test.asciidoc Organize Chapters
04_dialyzer.asciidoc improving examples and content
05_proper.asciidoc Fixes best practices link in menu and avoid 3 warnings
06_quick_check.asciidoc starting with quick check
07_testing_a_fsm.asciidoc start developing the ideas of testing an evolving system
08_wrangler.asciidoc improving examples and content
09_concuerror.asciidoc tweeking markup
10_ci.asciidoc improving examples and content
11_best_practices.asciidoc Fixes best practices link in menu and avoid 3 warnings
README.md added a link to new book
advanced_eunit.asciidoc Fixing typos, removing unnecessary empty lines and expanding some sho…
book.asciidoc Fixes best practices link in menu and avoid 3 warnings
build.sh Remove duplication
eunit_auto_test_runner.asciidoc Fixing typos, removing unnecessary empty lines and expanding some sho…
eunit_tdd_practicum.asciidoc more on eunit and meck
meck.asciidoc More on dialyzer
outline.asciidoc Fixes best practices link in menu and avoid 3 warnings

README.md

Testing Erlang

I have created a new book on using QuickCheck with Erlang which you can find here http://www.erlang-quickcheck-book.com/

About this Book

Erlang has existed for a long time but has only recently become a trending language that is being used in more and more places as people find that Erlang is the perfect fit for building networked concurrent applications for the web and other places.

However in order to make a high performance scalable applications developers need to test those applications. The goal of this book is to introduce the reader to how to do different types of testing in Erlang.

This book starts with using EUnit for building Unit Tests in Erlang. It will then move on to other kinds of testing in Erlang. Including Statistical tests with PropER, Setting up CI with Jenkins or Travis, building performance tests and more.

Erlang also has a good set of tools for for static testing, Kostis Sagonas's research group has been working on a set of tools which provide a powerful aid to development of applications. These include Dialyzer which will find all sorts of discrepancies in a code base, including non matching types, and code that can never be executed. In addition they have created a tool called Concuerror which can detect all sorts of concurrency errors.

Building as open source

This is "Testing Erlang" which is an experiment in collective authoring of a book on how to do Testing in Erlang. I want to tap the collective mind of the internet to make this book amazing and to cover a wide range of topics.

This book is for now a work in progress and is at an early phase. When the book is finished it will be published by O'Reilly media.

Technical Details

This project is being written in AsciiDoc which is a pretty simple format, you can find details here: http://www.methods.co.nz/asciidoc/

How do you decide what to include

Mostly its what ever I am working with on a given day. If I am doing unit testing I will be adding content about unit tests. If I am working on Stress testing then I will be writing about that.

Why haven't you included something about "X"

Probably because it hasn't come up in any of my projects. Feel free to start work on it and send me a pull request!

To Contribute

If you want to contribute to this project please read the style guide first. After that fork this project and send a pull request.

Any content I receive by pull request may be included in the book, so if you don't want your content included please don't send it to me. Also please make sure I have your name and email address, If you want to include your twitter handle or other contact details please feel free.

If you are adding a new chapter please add a link into "book.asciidoc.html" in the "New Chapters" section

Style Guide

Each chapter should be its own file named So unit tests are eunit.asciidoc There should also be a directory eunit with sub directories images and src that contains source code, figures and so on for each chapter.

Indent code with spaces not tabs, make it easy to read. Make sure all code is referenced in the text in some useful way.

To Build

To build this on Linux install the asciidoc package (via yum or apt-get) make a html directory and run the build.sh script this will turn everything into HTML

Chapters

Something went wrong with that request. Please try again.