Testing Elm Programs

elm-program-test provides a convenient API that works with elm-test (including Test.Html) for testing your Elm programs as complete units. Testing your programs at this level provides test coverage that is resilient even to drastic refactorings of your application architecture, and encourages tests that make it clear how end-users and external services will interact with your program.

Guidebooks

The following guides show examples of how to use elm-program-test to test different aspects of an Elm program. You can skip to whichever guide is relevant to what you want to test in your program.