HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

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