PureharmTestRuntimeLazyConversions
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