1(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{408:function(t,e,r){"use strict";r.r(e);var a=r(56),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"testing-elm-programs"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#testing-elm-programs"}},[t._v("#")]),t._v(" Testing Elm Programs")]),t._v(" "),r("p",[r("code",[t._v("elm-program-test")]),t._v(" provides a convenient API that works with\n"),r("a",{attrs:{href:"http://package.elm-lang.org/packages/elm-explorations/test/latest",target:"_blank",rel:"noopener noreferrer"}},[t._v("elm-test"),r("OutboundLink")],1),t._v("\n(including "),r("code",[t._v("Test.Html")]),t._v(")\nfor testing your Elm programs as complete units.\nTesting your programs at this level\nprovides test coverage that is resilient even to drastic refactorings of your application architecture,\nand encourages tests that make it clear how end-users and external services will interact with your program.")]),t._v(" "),r("ul",[r("li",[r("a",{attrs:{href:"https://package.elm-lang.org/packages/avh4/elm-program-test/latest",target:"_blank",rel:"noopener noreferrer"}},[t._v("API documentation"),r("OutboundLink")],1)]),t._v(" "),r("li",[r("a",{attrs:{href:"https://github.com/avh4/elm-program-test",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub page"),r("OutboundLink")],1)])]),t._v(" "),r("h2",{attrs:{id:"guidebooks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#guidebooks"}},[t._v("#")]),t._v(" Guidebooks")]),t._v(" "),r("p",[t._v("The following guides show examples of how to use\n"),r("code",[t._v("elm-program-test")]),t._v(" to test different aspects of an Elm program.\nYou can skip to whichever guide is relevant to what you want to\ntest in your program.")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/html.html"}},[t._v("Testing programs with interactive views")]),t._v(" â\nshows an example of test-driving adding form validation to an Elm program")],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/cmds.html"}},[t._v("Testing programs with Cmds")]),t._v(" â shows testing a program\nthat uses "),r("code",[t._v("Http.get")]),t._v(" and "),r("code",[t._v("Http.post")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/ports.html"}},[t._v("Testing programs with ports")]),t._v(" â shows testing a program\nthat uses ports to interface with JavaScript")],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/upgrade-3.0.0.html"}},[t._v("Upgrading from elm-program-test 2.x to 3.x")])],1)])])}),[],!1,null,null,null);e.default=o.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.