PillarsFromContainersForAll
Attributes
- Source
- suite.scala
- Graph
-
- Supertypes
-
trait TestContainersForAlltrait PillarsSuitetrait TestContainersSuitetrait DockerImageNameConvertersclass CatsEffectSuitetrait CatsEffectFunFixturestrait CatsEffectFixturestrait CatsEffectAssertionsclass FunSuitetrait BaseFunSuitetrait ValueTransformstrait SuiteTransformstrait TestTransformstrait TestOptionsConversionstrait FunFixturestrait Assertionstrait CompileErrorMacroclass Suitetrait PlatformSuiteclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
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:
- CatsEffectFixtures
- Source
- CatsEffectFixtures.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CatsEffectFixtures
- Source
- CatsEffectFixtures.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
Attributes
- Inherited from:
- ValueTransforms
- Source
- ValueTransforms.scala
- Supertypes
Deprecated and Inherited classlikes
Attributes
- Deprecated
- true
- Inherited from:
- CatsEffectFunFixtures
- Source
- CatsEffectFunFixtures.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Deprecated
- true
- Inherited from:
- CatsEffectFixtures
- Source
- CatsEffectFixtures.scala
- Supertypes
-
class Objecttrait Matchableclass Any
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.
Inherited and Abstract types
To use testcontainers suites you need to declare, which containers you want to use inside your tests.
To use testcontainers suites you need to declare, which containers you want to use inside your tests.
For example:
override type Containers = MySQLContainer
If you want to use multiple containers inside your tests, use and
syntax:
override type Containers = MySQLContainer and PostgreSQLContainer
Attributes
- Inherited from:
- TestContainersForAll
- Source
- TestContainersForAll.scala
Value members
Inherited methods
Attributes
- Definition Classes
-
TestContainersForAll
- Inherited from:
- TestContainersForAll
- Source
- TestContainersForAll.scala
Override, if you want to do something after containers start.
Override, if you want to do something after containers start.
Attributes
- Inherited from:
- TestContainersSuite
- Source
- TestContainersSuite.scala
Attributes
- Definition Classes
-
TestContainersForAll
- Inherited from:
- TestContainersForAll
- Source
- TestContainersForAll.scala
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.
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
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.
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
- Definition Classes
-
TestContainersForAll
- Inherited from:
- TestContainersForAll
- Source
- TestContainersForAll.scala
Override, if you want to do something before containers stop.
Override, if you want to do something before containers stop.
Attributes
- Inherited from:
- TestContainersSuite
- Source
- TestContainersSuite.scala
Attributes
- Definition Classes
-
TestContainersForAll
- Inherited from:
- TestContainersForAll
- Source
- TestContainersForAll.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
Attributes
- Inherited from:
- PillarsSuite
- Source
- suite.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
Optionally augment a failure with additional information.
Optionally augment a failure with additional information.
Failures that are not FailExceptionLike
subclasses will be wrapped, if needed.
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.scala
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
- Inherited from:
- Suite
- Source
- Suite.scala
Attributes
- Inherited from:
- TestTransforms
- Source
- TestTransforms.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
- Inherited from:
- TestTransforms
- Source
- TestTransforms.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
-
CatsEffectSuite -> ValueTransforms
- Inherited from:
- CatsEffectSuite
- Source
- CatsEffectSuite.scala
Attributes
- Inherited from:
- Assertions
- Source
- Assertions.scala
Attributes
- Inherited from:
- BaseFunSuite
- Source
- FunSuite.scala
Attributes
- Inherited from:
- BaseFunSuite
- Source
- FunSuite.scala
To use containers inside your test bodies you need to use withContainers
function:
To use containers inside your test bodies you need to use withContainers
function:
test("test") {
withContainers { mysqlContainer =>
// Inside your test body you can do with your container whatever you want to
assert(mysqlContainer.jdbcUrl.nonEmpty)
}
}
withContainers
also supports multiple containers:
test("test") {
withContainers { case mysqlContainer and pgContainer =>
// test body
}
}
Value parameters
- runTest
-
Test body
Attributes
- Inherited from:
- TestContainersSuite
- Source
- TestContainersSuite.scala
Attributes
- Inherited from:
- PillarsSuite
- Source
- suite.scala
Inherited and Abstract methods
Attributes
- Inherited from:
- PillarsSuite
- Source
- suite.scala
Contains containers startup logic. In this method you can use any intermediate logic. You can pass parameters between containers, for example:
Contains containers startup logic. In this method you can use any intermediate logic. You can pass parameters between containers, for example:
override def startContainers(): Containers = {
val container1 = Container1.Def().start()
val container2 = Container2.Def(container1.someParam).start()
container1 and container2
}
Attributes
- Returns
-
Started containers
- Inherited from:
- TestContainersSuite
- Source
- TestContainersSuite.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
Attributes
- Inherited from:
- TestContainersSuite
- Source
- TestContainersSuite.scala
Implicits
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
Deprecated and Inherited implicits
Attributes
- Deprecated
- true
- Inherited from:
- DockerImageNameConverters
- Source
- DockerImageNameConverters.scala