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

Versions0.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
Dependenciesaeson, base (==4.*), bytestring, http-client, http-test, lens, mtl, tasty, tasty-hunit, text, time, wreq
LicenseBSD3
AuthorOpenBrain Ltd
Maintainertomn@openbrain.org
CategoryTest, Web
Home pagehttps://github.com/openbrainsrc/http-test
Bug trackerhttps://github.com/openbrainsrc/http-test/issues
Source repositoryhead: git clone https://github.com/openbrainsrc/http-test
Executablestest-http-test-bayeshive
Upload dateFri May 23 20:01:47 UTC 2014
Uploaded byglutamate
Downloads550 total (57 in last 30 days)

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees