Swarm icon indicating copy to clipboard operation
Swarm copied to clipboard

Create a "forked JVM" test framework

Open earldouglas opened this issue 13 years ago • 1 comments

The current unit tests rely on the InMemTest class, which is a bit of a hack to simulate continuation serialization transport.

It would be much better to create a test framework which can be run as a usual unit test (i.e. with sbt test) that kicks off two real InetTransporter.listen threads (on different local ports) and tests actual serialization and transportation over sockets.

This might be doable with some advanced sbt trickery, or within a class via some clever class loading.

earldouglas avatar Jun 14 '11 05:06 earldouglas

See the Akka multi-JVM testing module: https://github.com/typesafehub/sbt-multi-jvm

earldouglas avatar Aug 10 '11 17:08 earldouglas