The http-test package

[Tags:bsd3, library, program]

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

Properties

Versions 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.2, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.1.0, 0.2.2.0, 0.2.2.1, 0.2.3, 0.2.4, 0.2.5
Dependencies aeson, base (==4.*), bytestring, http-client, http-test, lens (>=4.4), lens-aeson, mtl, tasty, tasty-hunit, text, time, wreq (>=0.4) [details]
License BSD3
Author OpenBrain Ltd
Maintainer tomn@openbrain.org
Stability Unknown
Category Test, Web
Home page https://github.com/openbrainsrc/http-test
Bug tracker https://github.com/openbrainsrc/http-test/issues
Source repository head: git clone https://github.com/openbrainsrc/http-test
Uploaded Thu Mar 3 21:21:10 UTC 2016 by glutamate
Distributions NixOS:0.2.5
Downloads 2644 total (59 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2016-03-03 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees