Method def withFixture
should return type org.scalatest.Outcome
, whereas your def withFixture
is returning Unit
. Error message is saying that quite clearly.
So for fixing it you need to change line:
def withFixture(test: OneArgTest): Unit = {
like so:
def withFixture(test: OneArgTest): org.scalatest.Outcome = {