Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- runCase :: CurlRunningsState -> CurlCase -> IO CaseResult
- runSuite :: CurlSuite -> LogLevel -> TLSCheckType -> IO [CaseResult]
- decodeFile :: FilePath -> IO (Either String CurlSuite)
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