packages feed

tmp-proc-example-0.7.2.5: tmp-proc-example.cabal

cabal-version:      3.0
name:               tmp-proc-example
version:            0.7.2.5
synopsis:           Test a simple service with backends running on docker using tmp-proc
description:
  An example of testing a service that uses Postgresql and Redis where these
  backends are launched in docker via simple test setup code that uses tmp-proc

license:            BSD-3-Clause
license-file:       LICENSE
copyright:          2021 Tim Emiola
author:             Tim Emiola
maintainer:         adetokunbo@contacts.noreply.github.com
category:           testing, docker
bug-reports:        https://github.com/adetokunbo/tmp-proc/issues
build-type:         Simple
extra-source-files:
  ChangeLog.md
tested-with:        GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.5

source-repository head
  type:     git
  location: https://github.com/adetokunbo/tmp-proc.git
  subdir:   tmp-proc-example

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
    , monad-logger
    , mtl
    , persistent
    , persistent-postgresql
    , persistent-template
    , postgresql-simple
    , servant
    , servant-client
    , servant-server
    , tasty
    , tasty-hunit
    , text
    , time
    , tmp-proc              >=0.5.3 && <0.8
    , tmp-proc-postgres
    , tmp-proc-redis        >=0.7.2.5
    , 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