This specific error happens when you use Scala 2.11 JAR files in Scala 2.12 projects. Scalatest is cross compiled with Scala 2.11 and Scala 2.12, so you can avoid this error by leveraging the SBT
%%
operator, as indicated in the accepted question. See my answer to learn more about the SBT
%%
operator and cross compilation, topics all Scala programmers must understand to avoid headaches. —
Powers 43 secs ago