Closing resources automatically
You can let Kotest close resources automatically after all tests have been run:
Resources that should be closed this way must implement java.lang.AutoCloseable
. Closing is performed in
reversed order of declaration after the return of the last spec interceptor.