ElixirConf 2016 - Painless Test Driven Development with Elixir and Phoenix by Kat Tornwall

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=7Zr9SfQhQp8



Duration: 38:34
7,394 views
132


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




Other Videos By Confreaks


2016-10-04RustConf 2016 - Back to the Futures by Alex Crichton
2016-10-04RustConf 2016 - The /r/playrust Classifier... by Suchin Gururangan & Colin O'Brien
2016-10-04RustConf 2016 - Integrating Some Rust in VLC Media Player by Geoffroy Couprie
2016-10-04RustConf 2016 - Opening Keynote by Aaron Turon & Niko Matsakis
2016-09-27ElixirConf 2016 - WebRTC and Phoenix, when μ Seconds aren't Fast Enough by Jason Stiebs
2016-09-27ElixirConf 2016 - Dialyzer: Optimistic Type Checking for Erlang and Elixir by Jason Voegele
2016-09-27ElixirConf 2016 - Concurrent Feature Testing with Wallaby by Chris Keathley
2016-09-27ElixirConf 2016 - Building Available and Partition Tolerant... by Gabi Zuniga
2016-09-27ElixirConf 2016 - Building Umbrella Project by Wojtek Mach
2016-09-27ElixirConf 2016 - Elixir in Elixir by Jay Hayes
2016-09-27ElixirConf 2016 - Painless Test Driven Development with Elixir and Phoenix by Kat Tornwall
2016-09-27ElixirConf 2016 - Nerves + Phoenix Saves a Father's Sanity! by Joel Byler
2016-09-27ElixirConf 2016 - Leveling Up With Ecto by Darin Wilson
2016-09-27ElixirConf 2016 - Refactoring Techniques for Elixir, Ecto, and Phoenix by Gary Rennie
2016-09-27ElixirConf 2016 - String Theory by Nathan Long & James Edward Gray II
2016-09-27ElixirConf 2016 - Keynote by José Valim
2016-09-27ElixirConf 2016 - Closing Keynote by BoydMulterer
2016-09-27ElixirConf 2016 - The Joy of Connecting Elixir to the Physical World by Frank Hunleth
2016-09-27ElixirConf 2016 - The new Calendar Types in Elixir 1.3 by Lau Tarrnskov
2016-09-27ElixirConf 2016 - From Front End to Full Stack with Elixir and Phoenix by Lauren Tan
2016-09-27ElixirConf 2016 - Collaborative Music with Elm and Phoenix by Josh Adams