Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. yesodSpecWithSiteGeneratorAndArgument :: YesodDispatch site => (a -> IO site) -> YesodSpec site -> SpecWith a

    sydtest-yesod Test.Syd.Yesod.Def

    Run a test suite using the given site generator which uses an inner resource. If your site contains any resources that you need to set up using a withX function, you will want to use yesodSpecWithSiteSupplier instead. This function exists for backward compatibility with yesod-test.

  2. yesodSpecWithSiteSetupFunc :: forall site (outers :: [Type]) . YesodDispatch site => (Manager -> SetupFunc site) -> TestDef (Manager ': outers) (YesodClient site) -> TestDef (Manager ': outers) ()

    sydtest-yesod Test.Syd.Yesod.Def

    Using a function that supplies a site, using a SetupFunc This function assumed that you've already set up the Manager beforehand using something like managerSpec.

  3. yesodSpecWithSiteSetupFunc' :: forall site inner (outers :: [Type]) . YesodDispatch site => (Manager -> inner -> SetupFunc site) -> TestDef (Manager ': outers) (YesodClient site) -> TestDef (Manager ': outers) inner

    sydtest-yesod Test.Syd.Yesod.Def

    Using a function that supplies a site, using a SetupFunc. This function assumed that you've already set up the Manager beforehand using something like managerSpec.

  4. yesodSpecWithSiteSetupFuncWithMiddlewares :: forall site (outers :: [Type]) . YesodDispatch site => [Middleware] -> (Manager -> SetupFunc site) -> TestDef (Manager ': outers) (YesodClient site) -> TestDef (Manager ': outers) ()

    sydtest-yesod Test.Syd.Yesod.Def

    No documentation available.

  5. yesodSpecWithSiteSetupFuncWithMiddlewares' :: forall site inner (outers :: [Type]) . YesodDispatch site => [Middleware] -> (Manager -> inner -> SetupFunc site) -> TestDef (Manager ': outers) (YesodClient site) -> TestDef (Manager ': outers) inner

    sydtest-yesod Test.Syd.Yesod.Def

    No documentation available.

  6. yesodSpecWithSiteSupplier :: YesodDispatch site => (forall r . () => (site -> IO r) -> IO r) -> YesodSpec site -> Spec

    sydtest-yesod Test.Syd.Yesod.Def

    Using a function that supplies a site, run a test suite. Example usage with a yesod App that contains an sqlite database connection. See 'sydtest-persistent-sqlite'.

    import Test.Syd.Persistent.Sqlite
    
    data App = App { appConnectionPool :: ConnectionPool }
    
    main :: IO ()
    main = sydTest spec
    
    appSupplier :: (App -> IO r) -> IO r
    appSupplier func =
    withConnectionPool myMigration $ \pool ->
    func $ App { appConnectionPool = pool}
    
    spec :: Spec
    spec = yesodSpecWithSiteSupplier appSupplier $ do
    it "returns 200 on the homepage" $ do
    get HomeR
    statusIs 200
    

  7. yesodSpecWithSiteSupplierWith :: YesodDispatch site => (forall r . () => (site -> IO r) -> inner -> IO r) -> YesodSpec site -> SpecWith inner

    sydtest-yesod Test.Syd.Yesod.Def

    Using a function that supplies a site, based on an inner resource, run a test suite.

  8. yesodE2ESpec :: URI -> YesodSpec (E2E site) -> Spec

    sydtest-yesod Test.Syd.Yesod.E2E

    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
    

  9. yesodE2ESpec' :: URI -> YesodSpec (E2E site) -> TestDef '[Manager] ()

    sydtest-yesod Test.Syd.Yesod.E2E

    Like yesodE2ESpec, but doesn't set up the Manager for you. If you are running the end-to-end test against a server that uses https://, make sure to use a TLS-enabled Manager. You can do this using beforeAll newTlsManager.

  10. package yesod-auth

    Authentication for Yesod. API docs and the README are available at http://www.stackage.org/package/yesod-auth

Page 13 of many | Previous | Next