Discord is now Scala’s main chat platform. Please join us at https://discord.com/invite/scala
This is the test that I would like to write
it should "have all rules come from either the Scalastyle or the Scapegaot rules repositories" in new Ctx {
forEvery(rules) { rule =>
rule.repoKey shouldBe "sonar-scala-scalastyle" or "sonar-scala-scapegoat"
}
}
Sadly it doesn't compile, and I can't find nothing related to combining assertions with ors, will try with ||
List("sonar-scala-scalastyle", "sonar-scala-scapegoat") should contain rule.repoKey
@prayagupd Well surely I can, and it does what I wanted, I just was expecting some nicer DSL...
I think I had a similar problem a few months ago and I solve it that way, so I was thinking it was a repetitive enough requirement to have an especial treatment.
Anyways, Thanks a lot :+1: