utest
utest copied to clipboard
A simple testing framework for Scala
Simple demonstration: ``` import org.scalatest.funspec.AnyFunSpec import scala.language.experimental.macros class ErrorCase extends AnyFunSpec { final val code = """ object FoundReq { class L type R def f(r: R): Int = ???...
It would be great to have a way to disable a test, rather than commenting it out. A disabled test would still show up in the output. Let's say I...
Add as `utest/test/src/test/utest/MacroTest.scala`: ```scala package test.utest import utest._ object MacroTest extends TestSuite { sealed trait Blah object Blah { case object X extends Blah case class Y(s: String) extends Blah...
I have: ``` $ cat build.sbt libraryDependencies += "com.lihaoyi" %% "utest" % "0.7.10" % "test" testFrameworks += new TestFramework("utest.runner.Framework") ``` and ``` $ cat src/test/scala/HelloTests.scala package test.utest.examples import utest._ object...
I want to use this framework in Maven Scala project, but it seems Maven does not detect tests, however it detects test class.
``` java.lang.UnsupportedClassVersionError: utest/EnableReflectiveInstantiation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions...
With scala 2.13.5 I'm getting compiler warnings when using the TestPath implicit. That's new after an update from scala 2.12.x. ``` [warn] /Users/bwbecker/oat/src/oatlibxp/oatlibxp/src/test/scala/oatLibXP/verify/ImplicitTest.scala:13:21: method copyArrayToImmutableIndexedSeq in class LowPriorityImplicits2 is deprecated...
Matching on a `None` within a test leads to a ClassCastException under Scala 3.0.0-M3. A couple of notes: - this only happens when the match is defined directly in a...
Disclaimer: I'm a scala noob that is reading https://www.handsonscala.com/ and I have no ideia if is possible do what I suggesting. Reading this book I always try to write the...
Current Readme.md has contradictions: > Supports every version of Scala under the sun > Dropped support for Scala 2.10.x, 2.11.x