weaver

package weaver

Type members

Classlikes

final case class AssertionException(message: String, locations: NonEmptyList[SourceLocation]) extends WeaverTestException
final class CanceledException(val reason: Option[String], val location: SourceLocation) extends WeaverTestException
trait EffectCompat[F[_]]
trait EffectSuite[F[_]] extends Suite[F] with Here
Companion:
object
Companion:
class
class Expect extends Recorder[Boolean, Expectations] with UnaryRecorder[Boolean, Expectations]
Companion:
class
object Formatter
abstract class FunSuiteF[F[_]] extends RunnableSuite[F] with FunSuiteAux

Top-level instances of this trait are detected by the framework and used to manage the lifecycle of shared resources.

Top-level instances of this trait are detected by the framework and used to manage the lifecycle of shared resources.

The weaver.GlobalResourceF.Write store is a channel that lets you store resources (http/database clients) using some type-specific tags. We provide scala.reflect.ClassTag based implementation that works for that aren't subject to type-erasure (ie when a Scala type is equivalent to a JVM class)

Stored resources can be retrieved in test suites, by having your suite sport a constructor that takes a GlobalResourceF instance.

Companion:
object
Companion:
class
final class IgnoredException(val reason: Option[String], val location: SourceLocation) extends WeaverTestException
abstract class Log[F[_]](timestamp: F[Long])(implicit evidence$1: FlatMap[F])
Companion:
object
object Log
Companion:
class
abstract class MutableFSuite[F[_]] extends RunnableSuite[F]
sealed abstract class Platform(val name: String)
Companion:
object
object Platform
Companion:
class
trait ResourceTag[A] extends AnyRef

Rough type-tag, for which we provide a low effort instance based on classtags for classes that are not subject to type-erasure.

Rough type-tag, for which we provide a low effort instance based on classtags for classes that are not subject to type-erasure.

Because this type is used as an index in a map, you ought to make sure it implements proper equals/hashCode methods

Companion:
object
Companion:
class
sealed trait Result
Companion:
object
object Result
Companion:
class
@RunWith(scala.Predef.classOf[weaver.junit.WeaverRunner])
abstract class RunnableSuite[F[_]] extends EffectSuite[F]
class Runner[F[_]](args: List[String], maxConcurrentSuites: Int)(printLine: String => F[Unit])(implicit evidence$1: Async[F])
Companion:
object
object Runner
Companion:
class
final case class SourceLocation(filePath: String, fileRelativePath: String, line: Int)
Companion:
object
Companion:
class
trait Suite[F[_]] extends BaseSuiteClass
object Test
case class TestName(name: String, location: SourceLocation, tags: Set[String])

An identifier to a test in a suite.

An identifier to a test in a suite.

The implicit conversion from String is used as a mean for IDEs to detect the location of individual tests.

Companion:
object
object TestName
Companion:
class
Companion:
object
Companion:
class
sealed abstract class TestStatus(val label: String)
Companion:
object
object TestStatus
Companion:
class
trait UnsafeRun[F[_]] extends EffectCompat[F]

Abstraction allowing for running IO constructs unsafely.

Abstraction allowing for running IO constructs unsafely.

This is meant to delegate to library-specific constructs for running effect types.

abstract class WeaverException(message: String, cause: Option[Throwable], location: SourceLocation) extends RuntimeException
sealed abstract class WeaverTestException(message: String, cause: Option[Throwable], location: SourceLocation) extends WeaverException
object macros