Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use for local testing #312

Open
haf opened this issue Apr 25, 2018 · 0 comments
Open

Document how to use for local testing #312

haf opened this issue Apr 25, 2018 · 0 comments
Labels

Comments

@haf
Copy link
Member

haf commented Apr 25, 2018

      let logary =
        Config.create "EndToEndTests" (Dns.GetHostName())
        |> Config.targets [ LiterateConsole.create LiterateConsole.empty "console" ]
        |> Config.ilogger (ILogger.LiterateConsole Verbose)
        |> Config.loggerLevels [ ".*", LogLevel.Debug ]
        |> Config.processing (Events.events |> Events.sink [ "console" ])
        |> Config.build
        |> run

      LogaryFacadeAdapter.initialise<Expecto.Logging.Logger> logary

      let errorSink = ExpectoIndirection.createErrorSink cts.Token
      let post =
        Codecs.Codec.log4jXML // or whichever method you use for sending to Rutta
        >> Result.map (FromNetwork >> errorSink.Post)
        >> Job.result

...meanwhile in your app, create a target for UDP or Shipper and spawn Rutta in a container.

ErrorSink is used to assert there are no errors logged from your SUT (your whole system) while you're interacting with it.

@haf haf added the docs label Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant