scalus.testing.yaci

Members list

Type members

Classlikes

case class YaciConfig(enableLogs: Boolean = ..., containerName: String = ..., reuseContainer: Boolean = ...)

Configuration for Yaci DevKit container

Configuration for Yaci DevKit container

Value parameters

containerName

Name for the Docker container (used with reuse)

enableLogs

Enable container logs for debugging

reuseContainer

Reuse the same container across test runs for faster iteration

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object YaciContainer

Singleton container holder for sharing across test suites with reference counting

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

Supertypes
class Object
trait Matchable
class Any
Self type
trait YaciDevKit extends IntegrationTest

Base trait for integration tests using Yaci DevKit with ScalaTest

Base trait for integration tests using Yaci DevKit with ScalaTest

This trait extends IntegrationTest and forces Yaci environment (ignores SCALUS_TEST_ENV). Use createYaciContext() to get a scalus.testing.integration.YaciTestContext with:

  • Multi-party access (alice, bob, eve)
  • Full HD account access via account (Party.Alice with stake, drep, change keys)
  • Pre-registered pool ID for staking tests

For multi-environment tests, use IntegrationTest directly instead.

Usage:

class MyIntegrationTest extends AnyFunSuite with YaciDevKit {
 test("submit transaction to devnet") {
   val ctx = createYaciContext()
   // ctx.account provides full HD wallet access (Party.Alice)
   // ctx.alice, ctx.bob, ctx.eve for multi-party scenarios
 }
}

The trait supports container reuse across test runs for faster iteration. Override yaciConfig to customize behavior:

override def yaciConfig = YaciConfig(
 enableLogs = true,
 reuseContainer = true
)

Attributes

Supertypes
trait ScalusTest
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
trait BeforeAndAfterAll
trait SuiteMixin
class Object
trait Matchable
class Any
Show all
Self type
Suite