I’m doing the Tutorial of the Getting Started section on Akka’s documentation, it is all good and incredible well written, but in part 3 when we starting writing tests, I sense a lack of information on where to get the implicit system (ActorSystem) or how to setup the ScalaTest to use Akka Testkit.
Would be possible to improve the code on the documentation or at least in case it becomes bigger and optionated over the test suite used, we could point the user to Testkit Docs where it has already an example with ScalaTest ?
That should contain complete tests using Scalatest that you can base your tests on.
(We discussed exactly this recently in an issue, but now I can’t find it)
Yes I did! But I deleted the test without looking at it first, so really my bad, sorry. So I downloaded it again, seems good to get started and after getting experience on Scalatest one can refine their tests. I could find information that a I needed looking on the documentation
with the appropriate code snippet. But this DeviceSpec.scala files uses somehow this “AkkaSpec” object which is not available in a newly setup project. This was a bit misleading. As I have seen this “AkkaSpec” object is only available in the test folder of the akka-testkit module.