Interesting. Thanks for posting this. The way I would have probably
tried to do this is with is the loan pattern. I.e., instead of:
for {
(httpPort, httpsPort) <- withServer()
driver <- withChromeDriver()
(empId, depId) <- loadDbWithEmpAndDep()
} {
...do the test...
}
I'd probably try something like:
withServer { (httpPort, httpsPort) =>
withChromeDriver { driver =>
withDBLoadedWithEmpAndDep { (empId, depId) =>
...do the test...
}
}
}
Is there something you need that you can't get from the loan pattern
that you can get with the for comprehensions?
Thanks.
Bill
> --
> You received this message because you are subscribed to the Google
> Groups "scalatest-users" group.
> To post to this group, send email to scalate...@googlegroups.com
> To unsubscribe from this group, send email to
> scalatest-use...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/scalatest-users?hl=en
> ScalaTest itself, and documentation, is available here:
> http://www.artima.com/scalatest
--
Bill Venners
Artima, Inc.
http://www.artima.com