YaciContainer

scalus.testing.yaci.YaciContainer
object YaciContainer

Singleton container holder for sharing across test suites with reference counting

This object manages the lifecycle of a Yaci DevKit container instance, allowing multiple test suites to share the same container. Reference counting ensures the container stays alive as long as any test suite needs it.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def acquire(config: YaciConfig): YaciCardanoContainer

Acquire container (starts if not running, increments ref count)

Acquire container (starts if not running, increments ref count)

Value parameters

config

Configuration for the container

Attributes

Returns

Running YaciCardanoContainer instance

def release(): Unit

Release container (decrements ref count)

Release container (decrements ref count)

Note: Does not stop the container - cleanup is handled by testcontainers/ryuk. This allows container reuse across test runs when reuse is enabled.

Attributes