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, 0.2.2.0, 0.2.2.1, 0.2.3, 0.2.4, 0.2.5
Change logNone available
Dependenciesaeson, base (==4.*), bytestring, http-client, http-test, lens (>=4.4), lens-aeson, mtl, tasty, tasty-hunit, text, time, wreq (>=0.4) [details]
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
UploadedThu Mar 3 21:21:10 UTC 2016 by glutamate
DistributionsNixOS:0.2.5
Downloads2515 total (32 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Last success reported on 2016-03-03 [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees