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
class Expect extends Recorder[Boolean, Expectations] with UnaryRecorder[Boolean, Expectations] with ExpectSame
@EnableReflectiveInstantiation
trait GlobalResourceBase
Top-level instances of this trait are detected by the framework and used to manage
the lifecycle of shared resources.
the lifecycle of shared resources.
The weaver.GlobalResources.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)
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 GlobalResource instance.
that takes a GlobalResource instance.
final class IgnoredException(val reason: Option[String], val location: SourceLocation) extends WeaverTestException
Rough type-tag, for which we provide a low effort instance based on classtags for classes that
are not subject to type-erasure.
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
proper equals/hashCode methods
- Companion
- object
class Runner[F <: ([_$1] =>> Any)](args: List[String], maxConcurrentSuites: Int)(printLine: String => F[Unit])(evidence$1: Async[F])
- Companion
- object
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.
for IDEs to detect the location of individual tests.
The IDE is then able to request running a test at a specific
location, using a CLI call. The framework will be able to lookup
the test using the location (which should match with what the IDE
knows)
location, using a CLI call. The framework will be able to lookup
the test using the location (which should match with what the IDE
knows)
- Companion
- object
Abstraction allowing for running IO constructs unsafely.
This is meant to delegate to library-specific constructs for running
effect types.
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