ResultSpec
Attributes
- Graph
-
- Supertypes
-
class 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
- Supertypes
Attributes
- Inherited from:
- FunFixtures
- Supertypes
Attributes
- Inherited from:
- TestTransforms
- Supertypes
Attributes
- Inherited from:
- ValueTransforms
- Supertypes
Inherited types
Attributes
- Inherited from:
- Suite
Value members
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
Runs after each individual test case.
Attributes
- Inherited from:
- Assertions
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
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
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
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Assertions
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
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
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- CompileErrorMacro
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- SuiteTransforms
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- Suite
Attributes
- Inherited from:
- TestTransforms
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
Attributes
- Inherited from:
- TestTransforms
Attributes
- Inherited from:
- TestTransforms
Attributes
- Inherited from:
- ValueTransforms
Attributes
- Inherited from:
- SuiteTransforms
Attributes
- Inherited from:
- SuiteTransforms
Attributes
- Inherited from:
- SuiteTransforms
Attributes
- Inherited from:
- Assertions
Attributes
- Inherited from:
- SuiteTransforms
Attributes
- Inherited from:
- SuiteTransforms
Attributes
- Inherited from:
- TestTransforms
Attributes
- Inherited from:
- TestTransforms
The base class for all test suites
Attributes
- Inherited from:
- BaseFunSuite
Attributes
- Inherited from:
- ValueTransforms
Attributes
- Inherited from:
- ValueTransforms
Attributes
- Inherited from:
- BaseFunSuite
Implicits
Inherited implicits
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