Attributes
- Companion
- object
- Source
- BQSmokeTest.scala
- Graph
-
- Supertypes
-
trait GeneratedTestclass CatsEffectSuitetrait CatsEffectFunFixturestrait CatsEffectFixturestrait CatsEffectFixturesPlatformtrait CatsEffectAssertionsclass FunSuitetrait ValueTransformstrait SuiteTransformstrait TestTransformstrait TestOptionsConversionstrait FunFixturestrait Assertionstrait CompileErrorMacroclass Suitetrait PlatformSuiteclass Objecttrait Matchableclass AnyShow all
- Self type
Members list
Type members
Classlikes
Attributes
- Source
- BQSmokeTest.scala
- Supertypes
- Self type
-
ExampleQueries.type
Attributes
- Source
- BQSmokeTest.scala
- Supertypes
- Self type
-
Queries.type
Attributes
- Source
- BQSmokeTest.scala
- Supertypes
- Self type
-
StaticQueries.type
Inherited classlikes
Value parameters
- name
-
The name of this fixture, used for displaying an error message if
beforeAll()
orafterAll()
fail.
Attributes
- Inherited from:
- Suite
- Source
- Suite.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- FunFixtures
- Source
- FunFixtures.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- FunFixtures
- Source
- FunFixtures.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CatsEffectFunFixtures
- Source
- CatsEffectFunFixtures.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CatsEffectFixturesPlatform
- Source
- CatsEffectFixturesPlatform.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- SuiteTransforms
- Source
- SuiteTransforms.scala
- Supertypes
Attributes
- Inherited from:
- CatsEffectFunFixtures
- Source
- CatsEffectFunFixtures.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.scala
- Supertypes
-
trait Test => Testclass Objecttrait Matchableclass Any
Similar to ResourceSuiteLocalFixture
, but supported on both JVM and JS via several caveats.
Similar to ResourceSuiteLocalFixture
, but supported on both JVM and JS via several caveats. Instead of directly providing T
provides a (memoized) IO[T]
that is backed by a Deferred[T]
. It is unsafe because on JS the resource is closed concurrently without backpressure, i.e. the suite will complete even while the resource has not closed yet. On JVM it is semantically equivalent to ResourceSuiteLocalFixture
. Note also that constructing this fixture is impure because it unsafely allocates a Deferred
.
Attributes
- Inherited from:
- CatsEffectFixtures
- Source
- CatsEffectFixtures.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ValueTransforms
- Source
- ValueTransforms.scala
- Supertypes
Inherited types
Attributes
- Inherited from:
- Suite
- Source
- Suite.scala
Attributes
- Inherited from:
- Suite
- Source
- Suite.scala
Attributes
- Inherited from:
- Suite
- Source
- Suite.scala
The value produced by test bodies.
Value members
Concrete methods
Functinonal fixtures that can be reused for individual test cases or entire suites.
Functinonal fixtures that can be reused for individual test cases or entire suites.
Attributes
- Definition Classes
-
Suite
- Source
- BQSmokeTest.scala
Attributes
- Definition Classes
- Source
- BQSmokeTest.scala
Inherited methods
Runs once after all test cases and after all suite-local fixtures have been tear down.
Runs once after all test cases and after all suite-local fixtures have been tear down.
Attributes
- Inherited from:
- Suite
- Source
- Suite.scala
Runs after each individual test case.
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- GeneratedTest
- Source
- GeneratedTest.scala
Asserts that two elements are equal using ==
equality.
Asserts that two elements are equal using ==
equality.
The "expected" value (second argument) must have the same type or be a subtype of the "obtained" value (first argument). For example:
assertEquals(Option(1), Some(1)) // OK
assertEquals(Some(1), Option(1)) // Error: Option[Int] is not a subtype of Some[Int]
Use assertEquals[Any, Any](a, b)
as an escape hatch to compare two values of different types. For example:
val a: Either[List[String], Int] = Right(42)
val b: Either[String, Int] = Right(42)
assertEquals[Any, Any](a, b) // OK
assertEquals(a, b) // Error: Either[String, Int] is not a subtype of Either[List[String], Int]
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Asserts that two doubles are equal to within a positive delta.
Asserts that two doubles are equal to within a positive delta. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes.
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Asserts that two floats are equal to within a positive delta.
Asserts that two floats are equal to within a positive delta. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Float.NaN, Float.NaN, *) passes.
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Asserts that an IO
returns an expected value.
Asserts that an IO
returns an expected value.
The "returns" value (second argument) must have the same type or be a subtype of the one "contained" inside the IO
(first argument). For example:
assertIO(IO(Option(1)), returns = Some(1)) // OK
assertIO(IO(Some(1)), returns = Option(1)) // Error: Option[Int] is not a subtype of Some[Int]
The "clue" value can be used to give extra information about the failure in case the assertion fails.
Value parameters
- clue
-
a value that will be printed in case the assertions fails
- obtained
-
the IO under testing
- returns
-
the expected value
Attributes
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Asserts that a SyncIO
returns an expected value.
Asserts that a SyncIO
returns an expected value.
The "returns" value (second argument) must have the same type or be a subtype of the one "contained" inside the SyncIO
(first argument). For example:
assertSyncIO(SyncIO(Option(1)), returns = Some(1)) // OK
assertSyncIO(SyncIO(Some(1)), returns = Option(1)) // Error: Option[Int] is not a subtype of Some[Int]
The "clue" value can be used to give extra information about the failure in case the assertion fails.
Value parameters
- clue
-
a value that will be printed in case the assertions fails
- obtained
-
the SyncIO under testing
- returns
-
the expected value
Attributes
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- GeneratedTest
- Source
- GeneratedTest.scala
Runs once before all test cases and before all suite-local fixtures are setup.
Runs once before all test cases and before all suite-local fixtures are setup. An error in this method aborts the test suite.
Attributes
- Inherited from:
- Suite
- Source
- Suite.scala
Runs before each individual test case.
Runs before each individual test case. An error in this method aborts the test case.
Attributes
- Inherited from:
- Suite
- Source
- Suite.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- CompileErrorMacro
- Source
- MacroCompat.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- GeneratedTest
- Source
- GeneratedTest.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Intercepts a Throwable
being thrown inside the provided IO
.
Intercepts a Throwable
being thrown inside the provided IO
.
Attributes
- Example
-
val io = IO.raiseError[Unit](MyException("BOOM!")) interceptIO[MyException](io)
or
interceptIO[MyException] { IO.raiseError[Unit](MyException("BOOM!")) }
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Intercepts a Throwable
with a certain message being thrown inside the provided IO
.
Intercepts a Throwable
with a certain message being thrown inside the provided IO
.
Attributes
- Example
-
val io = IO.raiseError[Unit](MyException("BOOM!")) interceptIO[MyException]("BOOM!")(io)
or
interceptIO[MyException] { IO.raiseError[Unit](MyException("BOOM!")) }
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
Intercepts a Throwable
with a certain message being thrown inside the provided SyncIO
.
Intercepts a Throwable
with a certain message being thrown inside the provided SyncIO
.
Attributes
- Example
-
val io = SyncIO.raiseError[Unit](MyException("BOOM!")) interceptSyncIO[MyException]("BOOM!")(io)
or
interceptSyncIO[MyException] { SyncIO.raiseError[Unit](MyException("BOOM!")) }
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
Intercepts a Throwable
being thrown inside the provided SyncIO
.
Intercepts a Throwable
being thrown inside the provided SyncIO
.
Attributes
- Example
-
val io = SyncIO.raiseError[Unit](MyException("BOOM!")) interceptSyncIO[MyException](io)
or
interceptSyncIO[MyException] { SyncIO.raiseError[Unit](MyException("BOOM!")) }
- Inherited from:
- CatsEffectAssertions
- Source
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- SuiteTransforms
- Source
- SuiteTransforms.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.scala
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.scala
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.scala
Attributes
- Inherited from:
- ValueTransforms
- Source
- ValueTransforms.scala
Attributes
- Inherited from:
- SuiteTransforms
- Source
- SuiteTransforms.scala
Attributes
- Inherited from:
- SuiteTransforms
- Source
- SuiteTransforms.scala
Attributes
- Inherited from:
- SuiteTransforms
- Source
- SuiteTransforms.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- SuiteTransforms
- Source
- SuiteTransforms.scala
Attributes
- Inherited from:
- SuiteTransforms
- Source
- SuiteTransforms.scala
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.scala
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.scala
The base class for all test suites
Attributes
- Inherited from:
- FunSuite
- Source
- FunSuite.scala
Attributes
- Inherited from:
- ValueTransforms
- Source
- ValueTransforms.scala
Attributes
- Definition Classes
-
CatsEffectSuite -> ValueTransforms
- Inherited from:
- CatsEffectSuite
- Source
- CatsEffectSuite.scala
Attributes
- Inherited from:
- FunSuite
- Source
- FunSuite.scala
Attributes
- Inherited from:
- FunSuite
- Source
- FunSuite.scala
Attributes
- Inherited from:
- GeneratedTest
- Source
- GeneratedTest.scala
Attributes
- Inherited from:
- GeneratedTest
- Source
- GeneratedTest.scala
Inherited fields
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- FunSuite
- Source
- FunSuite.scala
Implicits
Inherited implicits
Attributes
- Inherited from:
- CatsEffectSuite
- Source
- CatsEffectSuite.scala
Attributes
- Inherited from:
- CatsEffectSuite
- Source
- CatsEffectSuite.scala
Implicitly create a TestOptions given a test name.
Implicitly create a TestOptions given a test name. This allows writing test("name") { ... }
even if test
accepts a TestOptions
Attributes
- Inherited from:
- TestOptionsConversions
- Source
- TestOptions.scala