I have the following service:
trait PingService extends MyHttpService { val pingRoutes = path(\"ping\") { get { complete(\"message\" ->
The ScalatestRouteTest already provides an implicit ActorSystem. Remove the implicit modifier from your actorRefFactory method and the test should get executed.
ScalatestRouteTest
ActorSystem
implicit
actorRefFactory