HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduletasty-wai-0.1.2.0Haskell2010

Test.Tasty.Wai

Types and functions for testing wai endpoints using the tasty testing framework.

Contents
  1. Types
  2. Creation
  3. Helpers
  4. Request Builders
Synopsis

Types

Creation

Run a test case against a Application.

This module re-exports the functions from 'wai-extra' for constructing the Session that is executed against a given endpoint.

A small test case may look like:

import MyApp (app)

testWai app "List Topics" $ do
      res <- get "fudge/view"
      assertStatus' HTTP.status200 res

Helpers

An alternative helper function for checking the status code on a response that lets you use the functions from Network.HTTP.Types as opposed to bare numbers.

Request Builders