ElixirConf 2016 – Painless Test Driven Development With Elixir And Phoenix By Kat Tornwall


Is there a way to shave years off of the trial and error implementing Agile?
Find Out Now.


Painless Test Driven Development with Elixir and Phoenix by Kat Tornwall

Test driven development is a core part of our process at Gaslight, and for our first couple of Elixir applications, we struggled adjusting to writing tests in our Phoenix application after years of working with RSpec and Rails. Luckily, we’ve come up with several conventions, tips, and tricks to help developers write simple, easy to understand unit and feature tests. In this talk I’ll describe how we structure tests, test setup, and helper objects to make TDD as painless as possible. Specific topics I’ll cover are:
Naming conventions for organizing tests
Using factories and helpers to clean up your setup
Splitting tests into files to group them by context
Keeping your feature in order with page modules and Hound
Writing assertions to generate useful failure messages

Related posts: