These are chat archives for etorreborre/specs2

Aug 2018
Eric Torreborre
Aug 25 2018 06:49

Yes those 2 branches don’t have the same type so they can’t unify. You need to force the second one to be a Result

if (true) {
    skipped("Skip test")
  } else {
    1 must be equalTo 1 : org.specs2.execute.Result

You can also write 1 must beEqualTo(1) or skipped("Skip test”) but this will execute your test and you probably don’t want that