cabal-version: 3.0
name: tmp-proc-example
version: 0.5.1.1
synopsis: Shows how to test a simple service using tmp-proc
description:
Provides working examples that use tmp-proc to test a simple postgresql/redis servant-based API service
license: BSD-3-Clause
license-file: LICENSE
copyright: 2021 Tim Emiola
author: Tim Emiola
maintainer: adetokunbo@contacts.noreply.github.com
category: testing
bug-reports: https://github.com/adetokunbo/tmp-proc/issues
build-type: Simple
extra-source-files:
ChangeLog.md
tested-with:
GHC == 8.10.5
source-repository head
type: git
location: https://github.com/adetokunbo/tmp-proc.git
library
exposed-modules:
TmpProc.Example1.Cache
TmpProc.Example1.Client
TmpProc.Example1.Database
TmpProc.Example1.IntegrationTaste
TmpProc.Example1.Routes
TmpProc.Example1.Schema
TmpProc.Example1.Server
TmpProc.Example2.Cache
TmpProc.Example2.Client
TmpProc.Example2.Database
TmpProc.Example2.IntegrationSpec
TmpProc.Example2.Routes
TmpProc.Example2.Schema
TmpProc.Example2.Server
hs-source-dirs: src specs
build-depends:
, aeson
, base >=4.11 && <5
, bytestring
, exceptions
, hedis
, hspec
, hspec-tmp-proc
, http-client
, http-client-tls
, monad-logger
, mtl
, persistent
, persistent-postgresql
, persistent-template
, postgresql-simple
, servant
, servant-client
, servant-server
, tasty
, tasty-hunit
, text
, time
, tmp-proc
, tmp-proc-postgres
, tmp-proc-redis
, transformers
, wai
, warp
default-language: Haskell2010
ghc-options: -fno-ignore-asserts -Wall
test-suite hspec-integration-test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
build-depends:
, base
, hspec
, tmp-proc-example
default-language: Haskell2010
ghc-options:
-threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts -Wall
test-suite tasty-integration-test
type: exitcode-stdio-1.0
main-is: Taste.hs
hs-source-dirs: test
build-depends:
, base
, tmp-proc-example
default-language: Haskell2010
ghc-options:
-threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts -Wall