Hspec: Skipping tests

I have some acceptance tests that I only want to run locally (i.e. skip them in the CI). when :: Applicative f => Bool -> f () -> f() from Control.Monad allows for conditional execution of Applicative expressions, so I can do something like

module FooSpec where

spec :: Spec
spec = do
  devMode <- runIO isDevMode
  when devMode $ describe "foobar" $ using chrome ...

isDevMode :: IO Bool
isDevMode = getEnvDefault ..
 
3
Kudos
 
3
Kudos

Now read this

When linking goes wrong

I have a Haskell application that needs to be deployed to a server. I took the route of having CircleCI copy the binary after stack install to a S3 bucket, and have an Ansible playbook that copies the binary to the server and launch it... Continue →