tmp-proc-example-0.5.1.2: Shows how to test a simple service using tmp-proc
Copyright(c) 2020-2021 Tim Emiola
LicenseBSD3
MaintainerTim Emiola <adetokunbo@users.noreply.github.com>
Safe HaskellNone
LanguageHaskell2010

TmpProc.Example1.IntegrationTaste

Description

An demo Tasty test that use tmp-proc

Synopsis

Documentation

dbProc :: TmpPostgres Source #

The test uses a Postgres database .

cacheProc :: TmpRedis Source #

The test uses Redis as a cache.

testProcs :: HList '[TmpPostgres, TmpRedis] Source #

Specifies the procs to be launched as test fixtures.

main :: IO () Source #

type Fixture = (ServerHandle '[TmpPostgres, TmpRedis], ClientEnv) Source #

The full test fixture.

It allows tests to

  • use the servant client to invoke the backend
  • check the state of service backends via the ProcHandles in the ServerHandle.