ZIOSpec
Attributes
- Source
- ZIOSpec.scala
- Graph
-
- Supertypes
- Known subtypes
-
class ZIOSpecDefaultclass JUnitRunnableSpec
- Self type
-
ZIOSpec[R]
Members list
Type members
Types
The services that bootstrap builds and that run can use, besides ZIOAppArgs and Scope.
The services that bootstrap builds and that run can use, besides ZIOAppArgs and Scope.
Attributes
- Source
- ZIOSpec.scala
Value members
Concrete methods
Attributes
- Source
- ZIOSpec.scala
Builds a spec with a single test.
Inherited methods
Attributes
- Inherited from:
- ZIOSpecAbstract
- Source
- ZIOSpecAbstract.scala
Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications. The two run effects run in parallel, so when one fails the other is interrupted, and the app's bootstrap combines both bootstrap layers.
Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications. The two run effects run in parallel, so when one fails the other is interrupted, and the app's bootstrap combines both bootstrap layers.
Attributes
- Inherited from:
- ZIOApp
- Source
- ZIOApp.scala
Attributes
- Inherited from:
- ZIOSpecAbstract
- Source
- ZIOSpecAbstract.scala
A helper function to exit the application with the specified exit code.
A helper function to exit the application with the specified exit code.
On the JVM and Scala Native it calls System.exit at once, so the finalizers of run do not run; it does nothing when the app is already exiting, and on the JVM it does nothing inside an unforked sbt run. On Scala.js it sets process.exitCode and does not stop the program.
Attributes
- Inherited from:
- ZIOApp
- Source
- ZIOApp.scala
A helper function to obtain access to the command-line arguments of the application. You may use this helper function inside your run function.
A helper function to obtain access to the command-line arguments of the application. You may use this helper function inside your run function.
Attributes
- Inherited from:
- ZIOApp
- Source
- ZIOApp.scala
The time that the application waits, after a shutdown signal such as SIGINT interrupts run, for the finalizers to finish before the process exits. The default, Duration.Infinity, waits until they finish, and a zero or negative duration does not wait. When the time runs out, the app prints a warning and the process exits.
The time that the application waits, after a shutdown signal such as SIGINT interrupts run, for the finalizers to finish before the process exits. The default, Duration.Infinity, waits until they finish, and a zero or negative duration does not wait. When the time runs out, the app prints a warning and the process exits.
It is used on the JVM only: on Scala.js and Scala Native the app installs no shutdown hook, so this value has no effect.
Attributes
- Inherited from:
- ZIOApp
- Source
- ZIOApp.scala
Invokes the main app. Designed primarily for testing.
Invokes the main app. Designed primarily for testing.
Attributes
- Inherited from:
- ZIOApp
- Source
- ZIOApp.scala
The Scala main function, intended to be called only by the Scala runtime.
The Scala main function, intended to be called only by the Scala runtime.
Attributes
- Inherited from:
- ZIOAppPlatformSpecific (hidden)
- Source
- ZIOAppPlatformSpecific.scala
The main function of the application, which can access the command-line arguments through the getArgs helper method of this class. If the provided effect fails for any reason, the cause will be logged, and the exit code of the application will be non-zero (1). Otherwise, the exit code of the application will be zero, whatever value the effect succeeds with, even an ExitCode; call exit to end with another code. An interruption that comes from the app shutting down is not logged.
The main function of the application, which can access the command-line arguments through the getArgs helper method of this class. If the provided effect fails for any reason, the cause will be logged, and the exit code of the application will be non-zero (1). Otherwise, the exit code of the application will be zero, whatever value the effect succeeds with, even an ExitCode; call exit to end with another code. An interruption that comes from the app shutting down is not logged.
Attributes
- Inherited from:
- ZIOSpecAbstract
- Source
- ZIOSpecAbstract.scala
Attributes
- Inherited from:
- ZIOSpecAbstract
- Source
- ZIOSpecAbstract.scala
The runtime that main runs the app on: Runtime.default unless overridden. bootstrap can change its settings further.
The runtime that main runs the app on: Runtime.default unless overridden. bootstrap can change its settings further.
Attributes
- Inherited from:
- ZIOApp
- Source
- ZIOApp.scala
Attributes
- Inherited from:
- ZIOSpecVersionSpecific (hidden)
- Source
- ZIOSpecVersionSpecific.scala
Inherited and Abstract methods
A layer that manages the acquisition and release of services necessary for the application to run.
A layer that manages the acquisition and release of services necessary for the application to run.
Attributes
- Inherited from:
- ZIOSpecAbstract
- Source
- ZIOSpecAbstract.scala
Attributes
- Inherited from:
- ZIOSpecAbstract
- Source
- ZIOSpecAbstract.scala
Concrete fields
The tag of Environment, which ZIO uses to build the app's environment.
The tag of Environment, which ZIO uses to build the app's environment.
Attributes
- Source
- ZIOSpec.scala
Implicits
Inherited implicits
This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.
This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.
If it is missing requirements, it will report a descriptive error message. Otherwise, the effect will be returned unmodified.
Attributes
- Inherited from:
- ZIOSpecAbstractVersionSpecific (hidden)
- Source
- ZIOSpecAbstractVersionSpecific.scala
This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.
This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.
If it is missing requirements, it will report a descriptive error message. Otherwise, the effect will be returned unmodified.
Attributes
- Inherited from:
- ZIOAppVersionSpecific (hidden)
- Source
- ZIOAppVersionSpecific.scala