What You Learned

Well done. You achieved a lot in this chapter. You learned about unit tests and integration tests in Elm. You practiced TDD to build a date library. You used elm-test to create tests and expectations. Then, you used fuzz testing to test properties of code with random inputs. You even built your own date fuzzer. Finally, you tested an Elm application. You tested the update function to verify that the application’s state changed correctly. You ensured the view function displayed expected information and produced correct event messages without heavily coupling tests to the markup.

You are ready to start test-driving your own Elm code and applications. Now that you can build and test Elm applications, we can focus on more complex ...

Get Programming Elm now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.