Open ykycxzsv opened 6 years ago
Hi @ykycxzsv, thanks for the report. Can you try if overriding with override lazy val system
would work? Otherwise, you should still be able to test actors even without extending from Akka's TestKit
. What features of Akka's Testkit are you missing?
The compiler says "lazy value system cannot override a concrete non-lazy value". It's not about specific features, but our entire internal test framework sits on top of TestKit, so it's not trivial to get rid of it.
It seems like ScalatestRouteTest is incompatible with akka's TestKit, since they both implement val system: ActorSystem. I can't override it either, because it gets initialized too late and results in a NullPointerException. Is there a way to write tests that use both actors and HTTP?