SCALATEST: YOU'RE ASSERTING IT WRONG
summary
Shows concrete ScalaTest idioms that give clearer failures: use OptionValues/EitherValues (callable as value) instead of .get to get readable messages and failure locations, compare collections with loneElement or sameElements and use inspectors’ forAll/forEvery to report failing indexes, prefer FutureValue with implicit patience (default 150ms, IntegrationPatience = 15s) or async specs but avoid blocking on the serial execution context (deadlock), and use intercept/thrownBy/should have message for asserting exceptions.
AI-written summary · about








