busymachines.pureharm.testkit.util

Type members

Classlikes

object MDCKeys

Common keys used in MDC contexts for loggers... allows us to be somewhat consistent through the entire app especially since in logs these get sorted, so we can prefix them universally

Common keys used in MDC contexts for loggers... allows us to be somewhat consistent through the entire app especially since in logs these get sorted, so we can prefix them universally

Authors
Since

24 Jun 2020

Authors
Since

24 Jun 2020

Usually overriding the "executionContext" should be enough

Usually overriding the "executionContext" should be enough

Companion
object

Basically the problem is as such:

Basically the problem is as such:

  1. ideally, you probably want only one PureharmTestRuntime instantiated in your entire test run to not waste resources and startup time...
  2. and you want easy usage...

To achieve 2) we could make it a val runtime, and do import runtime._ in the tests, and all would be good!

But then 1) is impossible...

By doing this trick the runtime is instantiated as late as possible, and you get all the necessary imports in your tests usage as well!

Authors
Since

26 Jun 2020

final case class TestInitCatastrophe(message: String, options: TestOptions, causedBy: Option[Throwable]) extends Catastrophe
sealed trait TestOutcome extends Product with Serializable
Companion
object
object TestOutcome
Companion
class