weaver

package weaver

Members list

Concise view

Type members

Classlikes

final case class AssertionException(message: String, locations: NonEmptyList[SourceLocation]) extends WeaverTestException

Attributes

Graph
Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Suite[F]
trait EffectSuite[F]
class RunnableSuite[F]
class FunSuiteF[F]
class MutableFSuite[F]
final class CanceledException(val reason: Option[String], val location: SourceLocation) extends WeaverTestException

Attributes

Graph
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
trait EffectCompat[F[_]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait UnsafeRun[F]
trait EffectSuite[F[_]] extends Suite[F] with Here

Attributes

Companion:
object
Graph
Supertypes
trait Here
trait Suite[F]
class Object
trait Matchable
class Any
Known subtypes
class RunnableSuite[F]
class FunSuiteF[F]
class MutableFSuite[F]
Self type

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class Expect extends Recorder[Boolean, Expectations] with UnaryRecorder[Boolean, Expectations]

Attributes

Graph
Supertypes
trait UnaryRecorder[Boolean, Expectations]
class Recorder[Boolean, Expectations]
class Object
trait Matchable
class Any

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object Formatter

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FunSuiteF[F]
abstract class FunSuiteF[F[_]] extends RunnableSuite[F] with FunSuiteAux

Attributes

Graph
Supertypes
class RunnableSuite[F]
trait EffectSuite[F]
trait Here
trait Suite[F]
class Object
trait Matchable
class Any
Self type

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.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class IgnoredException(val reason: Option[String], val location: SourceLocation) extends WeaverTestException

Attributes

Graph
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
abstract class Log[F[_]](timestamp: F[Long])(implicit evidence$1: FlatMap[F])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Log[F]
object Log

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Log.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ResourceTag.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class MutableFSuite[F[_]] extends RunnableSuite[F]

Attributes

Graph
Supertypes
class RunnableSuite[F]
trait EffectSuite[F]
trait Here
trait Suite[F]
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class Platform(val name: String)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object JS.type
object JVM.type
object Native.type
object Platform

Attributes

Companion:
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
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

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait Result

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Cancelled
class Exception
class Failure
class Failures
class Ignored
object Success.type
object Result

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Result.type
abstract class RunnableSuite[F[_]] extends EffectSuite[F]

Attributes

Graph
Supertypes
trait EffectSuite[F]
trait Here
trait Suite[F]
class Object
trait Matchable
class Any
Known subtypes
class FunSuiteF[F]
class MutableFSuite[F]
class Runner[F[_]](args: List[String], maxConcurrentSuites: Int)(printLine: String => F[Unit])(implicit evidence$1: Async[F])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Runner

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Runner.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class SourceLocation(filePath: String, fileRelativePath: String, line: Int)

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SourceLocation.type
trait Suite[F[_]] extends BaseSuiteClass

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EffectSuite[F]
class RunnableSuite[F]
class FunSuiteF[F]
class MutableFSuite[F]

Attributes

Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
object Test

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Test.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
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.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object TestName

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Default

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class TestStatus(val label: String)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Cancelled.type
object Exception.type
object Failure.type
object Ignored.type
object Success.type
object TestStatus

Attributes

Companion:
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
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.

Attributes

Graph
Supertypes
trait EffectCompat[F]
class Object
trait Matchable
class Any
abstract class WeaverException(message: String, cause: Option[Throwable], location: SourceLocation) extends RuntimeException

Attributes

Graph
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
sealed abstract class WeaverTestException(message: String, cause: Option[Throwable], location: SourceLocation) extends WeaverException

Attributes

Graph
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object macros

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
macros.type