curl-runnings-0.17.0: A framework for declaratively writing curl based API tests
Safe HaskellNone
LanguageHaskell2010

Testing.CurlRunnings

Description

curl-runnings is a framework for writing declaratively writing curl based tests for your API's. Write your test specifications with yaml or json, and you're done!

Synopsis

Documentation

runCase :: CurlRunningsState -> CurlCase -> IO CaseResult Source #

Run a single test case, and returns the result. IO is needed here since this method is responsible for actually curling the test case endpoint and parsing the result.

runSuite :: CurlSuite -> LogLevel -> TLSCheckType -> IO [CaseResult] Source #

Runs the test cases in order and stop when an error is hit. Returns all the results

decodeFile :: FilePath -> IO (Either String CurlSuite) Source #

decode a json, yaml, or dhall file into a suite object