Http4sSuite
Common stack for http4s' munit based tests
Attributes
- Source:
- Http4sSuite.scala
- Graph
- Supertypes
- trait Http4sSuitePlatformtrait ScalaCheckEffectSuitetrait DisciplineSuitetrait ScalaCheckSuiteclass CatsEffectSuitetrait CatsEffectFunFixturestrait CatsEffectFixturestrait CatsEffectAssertionsclass FunSuitetrait BaseFunSuitetrait ValueTransformstrait SuiteTransformstrait TestTransformstrait TestOptionsConversionstrait FunFixturestrait Assertionstrait CompileErrorMacroclass Suitetrait PlatformSuiteclass Objecttrait Matchableclass Any
Members list
Type members
Classlikes
Attributes
- Source:
- Http4sSuite.scala
- Graph
- Supertypes
Inherited classlikes
Attributes
- Inherited from:
- FunFixtures
- Source:
- FunFixtures.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- FunFixtures
- Source:
- FunFixtures.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectFunFixtures
- Source:
- CatsEffectFunFixtures.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectFixtures
- Source:
- CatsEffectFixtures.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectFixtures
- Source:
- CatsEffectFixtures.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- SuiteTransforms
- Source:
- SuiteTransforms.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- CatsEffectFunFixtures
- Source:
- CatsEffectFunFixtures.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- TestTransforms
- Source:
- TestTransforms.scala
- Graph
- Supertypes
Attributes
- Inherited from:
- ValueTransforms
- Source:
- ValueTransforms.scala
- Graph
- Supertypes
Deprecated and Inherited classlikes
Attributes
- Deprecated
- true
- Inherited from:
- CatsEffectFunFixtures
- Source:
- CatsEffectFunFixtures.scala
- Graph
- Supertypes
Attributes
- Deprecated
- true
- Inherited from:
- CatsEffectFixtures
- Source:
- CatsEffectFixtures.scala
- Graph
- Supertypes
Inherited types
Attributes
- Inherited from:
- Suite
- Source:
- Suite.scala
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
Fixtures that can be reused for individual test cases or entire suites.
Fixtures that can be reused for individual test cases or entire suites.
Attributes
- Definition Classes
- Suite
- Source:
- Http4sSuite.scala
Attributes
- Source:
- Http4sSuite.scala
Attributes
- Source:
- Http4sSuite.scala
Attributes
- Source:
- Http4sSuite.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
Asserts that two elements are equal according to the Compare[A, B]
type-class.
Asserts that two elements are equal according to the Compare[A, B]
type-class.
By default, uses ==
to compare values.
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
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.
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. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Float.NaN, Float.NaN, *) passes.
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.
Attributes
- clue
a value that will be printed in case the assertions fails
- obtained
the IO under testing
- returns
the expected value
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Asserts that two elements are not equal according to the Compare[A, B]
type-class.
Asserts that two elements are not equal according to the Compare[A, B]
type-class.
By default, uses ==
to compare values.
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.
Attributes
- clue
a value that will be printed in case the assertions fails
- obtained
the SyncIO under testing
- returns
the expected value
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Runs once before all test cases and before all suite-local fixtures are setup. An error in this method aborts the test suite.
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. An error in this method aborts the 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:
- DisciplineSuite
- Source:
- DisciplineSuite.scala
Attributes
- Inherited from:
- DisciplineSuite
- Source:
- DisciplineSuite.scala
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Attributes
- Inherited from:
- CompileErrorMacro
- Source:
- MacroCompat.scala
Unconditionally fails this test with the given message and optional clues.
Unconditionally fails this test with the given message and optional clues.
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Unconditionally fails this test with the given message and exception marked as the cause.
Unconditionally fails this test with the given message and exception marked as the cause.
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Unconditionally fails this test due to result of comparing two values.
Unconditionally fails this test due to result of comparing two values.
The only reason to use this method instead of fail()
is if you want to
allow comparing the two different values in the the IntelliJ GUI diff
viewer.
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Unconditionally fail this test case and cancel all the subsequent tests in this suite.
Unconditionally fail this test case and cancel all the subsequent tests in this suite.
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Evalutes the given expression and asserts that an exception of type T is thrown.
Evalutes the given expression and asserts that an exception of type T is thrown.
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
Evalutes the given expression and asserts that an exception of type T with the expected message is thrown.
Evalutes the given expression and asserts that an exception of type T with the expected message is thrown.
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
- Definition Classes
- Inherited from:
- Http4sSuitePlatform
- Source:
- Http4sSuitePlatform.scala
Attributes
- Inherited from:
- TestTransforms
- Source:
- TestTransforms.scala
Attributes
- Inherited from:
- ValueTransforms
- Source:
- ValueTransforms.scala
The timeout for IO-based tests. When it expires it will gracefully cancel the fiber running the test and invoke any finalizers before ultimately failing the test.
The timeout for IO-based tests. When it expires it will gracefully cancel the fiber running the test and invoke any finalizers before ultimately failing the test.
Note that the fiber may still hang while running finalizers or even be uncancelable. In this case the munitTimeout will take effect, with the caveat that the hanging fiber will be leaked.
Attributes
- Inherited from:
- CatsEffectSuite
- Source:
- CatsEffectSuite.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
- Definition Classes
- ScalaCheckSuite -> TestTransforms
- Inherited from:
- ScalaCheckSuite
- Source:
- ScalaCheckSuite.scala
The base class for all test suites
The overall timeout applicable to all tests in the suite, including those written in terms of Future or synchronous code. This is implemented by the MUnit framework itself.
The overall timeout applicable to all tests in the suite, including those written in terms of Future or synchronous code. This is implemented by the MUnit framework itself.
When this timeout expires, the suite will immediately fail the test and proceed without waiting for its cancelation or even attempting to cancel it. For that reason it is recommended to set this to a greater value than munitIOTimeout, which performs graceful cancelation of IO-based tests. The default grace period for cancelation is 1 second.
Attributes
- Definition Classes
- CatsEffectSuite -> BaseFunSuite
- Inherited from:
- CatsEffectSuite
- Source:
- CatsEffectSuite.scala
Attributes
- Inherited from:
- ValueTransforms
- Source:
- ValueTransforms.scala
Attributes
- Definition Classes
- Inherited from:
- (x$1:@unchecked)match{ casep:Test.Result=> ScalaCheckEffectSuite.this.munit$ScalaCheckEffectSuite$$super$munitValueTransform(ScalaCheckEffectSuite.this.parseTestResult(p)(generate)) })) ScalaCheckEffectSuite.this.munit$ScalaCheckEffectSuite$$super$munitValueTransforms.:+[ValueTransform](ScalaCheckEffectSuite.this.scalaCheckPropFValueTransform).:+[ValueTransform](testResultTransform) }">ScalaCheckEffectSuite
- Source:
- ScalaCheckEffectSuite.scala
Attributes
- Inherited from:
- ScalaCheckSuite
- Source:
- ScalaCheckSuite.scala
Attributes
- Inherited from:
- ScalaCheckSuite
- Source:
- ScalaCheckSuite.scala
Attributes
- Inherited from:
- ScalaCheckSuite
- Source:
- ScalaCheckSuite.scala
Attributes
- Inherited from:
- ScalaCheckSuite
- Source:
- ScalaCheckSuite.scala
Attributes
- Inherited from:
- ScalaCheckSuite
- Source:
- ScalaCheckSuite.scala
Attributes
- Inherited from:
- BaseFunSuite
- Source:
- FunSuite.scala
Attributes
- Inherited from:
- BaseFunSuite
- Source:
- FunSuite.scala
Deprecated and Inherited methods
Attributes
- Deprecated
- true
- Inherited from:
- CatsEffectSuite
- Source:
- CatsEffectSuite.scala
Inherited fields
Attributes
- Inherited from:
- Assertions
- Source:
- Assertions.scala
Attributes
- Inherited from:
- BaseFunSuite
- Source:
- FunSuite.scala
Implicits
Implicits
Attributes
- Source:
- Http4sSuite.scala
Inherited implicits
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- CatsEffectAssertions
- Source:
- CatsEffectAssertions.scala
Attributes
- Inherited from:
- CatsEffectFunFixtures
- Source:
- CatsEffectFunFixtures.scala
Attributes
- Definition Classes
- CatsEffectSuite -> Suite
- Inherited from:
- CatsEffectSuite
- Source:
- CatsEffectSuite.scala
Attributes
- Inherited from:
- CatsEffectSuite
- Source:
- CatsEffectSuite.scala
Implicitly create a TestOptions given a test name.
This allows writing test("name") { ... }
even if test
accepts a TestOptions
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
Attributes
- Inherited from:
- ScalaCheckSuite
- Source:
- ScalaCheckSuite.scala