cardano-wallet-test-utils-2020.12.8: Shared utilities for writing unit and property tests.
Copyright© 2018-2020 IOHK
LicenseApache-2.0
Safe HaskellNone
LanguageHaskell2010

Test.Utils.StaticServer

Description

Provides a simple static files web server to be used as a fixture in tests which need a HTTP server.

Synopsis

Documentation

withStaticServer Source #

Arguments

:: FilePath

Web server root directory

-> (String -> IO a)

Action, taking base URL

-> IO a 

Run a localhost HTTP file server on any free port, while executing the given action.