Yesod.Test

Declaring and running your test suite

yesodSpec

type YesodSpec site

yesodSpecWithSiteGenerator

yesodSpecApp

type YesodExample site

data YesodExampleData site

type TestApp site

type YSpec site

testApp

data YesodSpecTree site

ydescribe

yit

Making requests

get

post

postBody

followRedirect

getLocation

request

addRequestHeader

setMethod

addPostParam

addGetParam

addFile

setRequestBody

type RequestBuilder site

setUrl

Adding fields by label

byLabel

fileByLabel

CSRF Tokens

addToken

addToken_

addTokenFromCookie

addTokenFromCookieNamedToHeaderNamed

Assertions

assertEqual

assertEqualNoShow

assertEq

assertHeader

assertNoHeader

statusIs

bodyEquals

bodyContains

bodyNotContains

htmlAllContain

htmlAnyContain

htmlNoneContain

htmlCount

Grab information

getTestYesod

getResponse

getRequestCookies

Debug output

printBody

printMatches

Utils for building your own assertions

htmlQuery

parseHTML

withResponse