busymachines.pureharm.testkit.util
Type members
Classlikes
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
Lorand Szakacs, https://github.com/lorandszakacs
- 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:
- ideally, you probably want only one PureharmTestRuntime instantiated in your entire test run to not waste resources and startup time...
- 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
Lorand Szakacs, https://github.com/lorandszakacs
- Since
26 Jun 2020