swagger-test-0.2.2: Testing of Swagger APIs

Copyright(c) Rodrigo Setti 2017
LicenseBSD3
Maintainerrodrigosetti@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Test.Swagger.Report

Description

 

Synopsis

Documentation

isSuccessful :: TestReport -> Bool Source #

Predicate that tells whether or not a report is of a successful validation

writeReportFile :: FilePath -> NormalizedSwagger -> [TestReport] -> IO () Source #

Write a report file containing a header description about the Swagger schema, then a section about each Operation, how many tests were performed, general stats (# failuressuccesses) and requestresponse details for failures.

writeErrorReportFile :: FilePath -> String -> IO () Source #

Write a report file containing just a single error message. This is to be used if we find an error before being able to run any test (parsing schema, etc.)

runTests :: NormalizedSwagger -> Int -> Size -> IO [TestReport] Source #

Run n tests for a Swagger schema