Scala test example with normal and mocked server
Author: Maximilian Bundscherer (https://bundscherer-online.de)
Test-Coverage: 100.00% ;)
- Simple example server and client included (see
src/main/scala/com/mb/scalamockexample/*
) - Server and client communicate over simple messages
- Normal and mocked server test included
- normal-test - see
src/test/scala/com/mb/scalamockexample/ExampleTest
- test with mocked server - see
src/test/scala/com/mb/scalamockexample/MockTest
- normal-test - see
- Auto-generate coverage report(s) (sbt-scoverage)
- Scala: programming language
- ScalaTest: testing project ('overwritten' by ScalaMock)
- ScalaMock: mocking framework
- sbt-scoverage: generate test coverage report(s)
- See requirements!
- Run tests
sbt clean coverage test
- Generate coverage report(s)
sbt coverageReport
- SBT