| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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!
- runCase :: CurlCase -> IO CaseResult
- runSuite :: CurlSuite -> IO [CaseResult]
- decodeFile :: FilePath -> IO (Either String CurlSuite)
Documentation
runCase :: CurlCase -> IO CaseResult #
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 -> IO [CaseResult] #
Runs the test cases in order and stop when an error is hit. Returns all the results