sydtest-wai-0.0.0.0: A wai companion library for sydtest
Safe HaskellNone
LanguageHaskell2010

Test.Syd.Wai

Synopsis

Documentation

waiSpec :: Application -> TestDef l Port -> TestDef l () Source #

Run a given Application around every test.

This provides the port on which the application is running.

waiSpecWith :: (forall r. (Application -> IO r) -> IO r) -> TestDef l Port -> TestDef l () Source #

Run a Application around every test by setting it up with the given setup function.

This provides the port on which the application is running.

waiSpecWith' :: (forall r. (Application -> IO r) -> a -> IO r) -> TestDef l Port -> TestDef l a Source #

Run a Application around every test by setting it up with the given setup function that can take an argument. a This provides the port on which the application is running.

waiSpecWithSetupFunc :: SetupFunc a Application -> TestDef l Port -> TestDef l a Source #

Run a Application around every test by setting it up with the given SetupFunc. a This provides the port on which the application is running.

applicationSetupFunc :: SetupFunc Application Port Source #

A SetupFunc to run an application and provide its port.

managerSpec :: TestDef (Manager ': l) a -> TestDef l a Source #

Create a Manager before all tests in the given group.