sydtest-rabbitmq-0.1.0.0: An rabbitmq companion library for sydtest
Safe HaskellNone
LanguageHaskell2010

Test.Syd.RabbitMQ

Synopsis

Documentation

rabbitMQSpec :: TestDefM (RabbitMQHandle ': outers) inner result -> TestDefM outers inner result Source #

Run a rabbitmq server around a group of tests.

Example usage:

rabbitMQSpec $ do
  describe "rabbitMQSpec" $
    it "can run the server and clean up nicely" $ do
      pure () :: IO ()

(You will probably want to use `sydtest-amqp` or `sydtest-amqp-client` instead of directly using this package.)

This function also cleans up the rabbitmq state before every test. Consequently, it also uses modifyMaxSuccess (div 20) to decrease the number of property tests that will be run, because the state cleaning takes a long time.

rabbitMQServerSetupFunc :: SetupFunc RabbitMQHandle Source #

Set up a rabbitmq server in a temporary directory.

rabbitMQServerSetupFunc' :: Path Abs Dir -> SetupFunc RabbitMQHandle Source #

Set up a rabbitmq server in the given directory

cleanRabbitMQStateBeforeEach :: TestDefM (RabbitMQHandle ': outers) inner result -> TestDefM (RabbitMQHandle ': outers) inner result Source #