Safe Haskell | None |
---|
- httpTest :: Program () -> IO ()
- session :: String -> String -> Session () -> Program ()
- get :: String -> Session String
- getJSON :: FromJSON a => String -> Session a
- postForm :: String -> [(String, String)] -> Session String
- assert :: String -> Bool -> Session ()
- type Program = ReaderT (TVar [Results]) IO
- type Session = StateT SessionState IO
Documentation
httpTest :: Program () -> IO ()Source
Run one or more test sessions. httpTest will exit when done, with exit code 1 if there were failures
:: String | Session name (used for logging failures) |
-> String | Base URL |
-> Session () | the actions and assertions that define the session |
-> Program () |
Define a single test session based on session name and base url