Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
yesodSpecWithSiteGenerator :: YesodDispatch site => IO site -> YesodSpec site -> Specyesod-test Yesod.Test Same as yesodSpec, but instead of taking already built site it takes an action which produces site for each test.
-
yesod-test Yesod.Test Same as yesodSpecWithSiteGenerator, but also takes an argument to build the site and makes that argument available to the tests.
-
Some helpers for using Persistent from Yesod. API docs and the README are available at http://www.stackage.org/package/yesod-persistent
yesodClientManager :: YesodClient site -> !Managersydtest-yesod Test.Syd.Yesod The Manager to make the requests
yesodClientSetupFunc :: YesodDispatch site => Manager -> site -> SetupFunc (YesodClient site)sydtest-yesod Test.Syd.Yesod No documentation available.
yesodClientSite :: YesodClient site -> !sitesydtest-yesod Test.Syd.Yesod The site itself
yesodClientSiteURI :: YesodClient site -> !URIsydtest-yesod Test.Syd.Yesod The base URI that the site is running on
yesodClientStateCookies :: YesodClientState -> !CookieJarsydtest-yesod Test.Syd.Yesod The cookies to pass along
yesodClientStateLast :: YesodClientState -> !Maybe (Request, Response ByteString)sydtest-yesod Test.Syd.Yesod The last request and response pair
yesodE2ESpec :: URI -> YesodSpec (E2E site) -> Specsydtest-yesod Test.Syd.Yesod Run an end-to-end yesod test suite against a remote server at the given URI. If you would like to write tests that can be run against both a local and a remote instance of your site, you can use the following type:
mySpec :: (Yesod site, RedirectUrl site (Route App)) => YesodSpec site mySpec = do it "responds 200 OK to GET HomeR" $ do get HomeR statusIs 200