Name: http-test Version: 0.2.3 synopsis: Test framework for HTTP APIs Description: A simple framework for making assertions about the responses of HTTP servers. . > import Test.HTTP > import Data.List (isInfixOf) > > main = defaultMain $ httpTestCase "BayesHive landing page" "https://bayeshive.com" $ do > landing <- get "/" > assert "Correct blog link" $ > "href=\"https://bayeshive.com/blog\"" `isInfixOf` landing > loginResult <- postForm "/auth/page/email/login" > [("email", "foo"), ("password", "bar")] > debug loginResult License: BSD3 Author: OpenBrain Ltd Maintainer: tomn@openbrain.org build-type: Simple Cabal-Version: >= 1.8 homepage: https://github.com/openbrainsrc/http-test bug-reports: https://github.com/openbrainsrc/http-test/issues Category: Test, Web license-file: LICENSE Source-Repository head Type: git Location: https://github.com/openbrainsrc/http-test Library Exposed-modules: Test.HTTP hs-source-dirs: src Build-depends: base >= 4 && < 5 , mtl , aeson , wreq , tasty , tasty-hunit , text , bytestring , lens , http-client , time executable test-http-test-bayeshive main-is: test.hs Build-depends: base >= 4 && < 5 , http-test