title: Checking compilation error for Scala macros with scalatest
body: <p>Is any more graceful way to test compilation error that produced by Scala-macros than pasted bellow?</p>
  
  <pre><code>  assert(intercept[TestFailedException](assertCompiles {
      """case class DuplicatedNamed(@named("x") @named("y") z: Int)
        |JsonCodecMaker.make[DuplicatedNamed](CodecMakerConfig())""".stripMargin
    }).getMessage.contains {
      """Duplicated 'com.github.plokhotnyuk.jsoniter_scala.macros.named'
        |defined for 'z' of 'DuplicatedNamed'.""".stripMargin.replace('\n', ' ')
    })
  </code></pre>