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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access