scalus.testing.kit

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
abstract class BaseValidatorTest extends AnyFunSuite, ScalaCheckPropertyChecks, ArbitraryInstances

Base test class for validator testing.

Base test class for validator testing.

Provides assertion methods for evaluating Programs and checking results. This base class works on all platforms (JVM/JS/Native).

For JVM-only testing with UplcCli support, use BaseValidatorTestJvm instead.

Attributes

Supertypes
trait ScalaCheckPropertyChecks
trait ScalaCheckDrivenPropertyChecks
trait Configuration
trait TableDrivenPropertyChecks
trait Tables
trait Whenever
class AnyFunSuite
trait AnyFunSuiteLike
trait Documenting
trait Alerting
trait Notifying
trait Informing
trait TestRegistration
trait TestSuite
trait Suite
trait Serializable
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
Show all
Known subtypes
abstract class BaseValidatorTestJvm extends BaseValidatorTest

JVM-specific base test class for validator testing.

JVM-specific base test class for validator testing.

Extends BaseValidatorTest with UplcCli support for comparing results across different evaluators.

Attributes

Supertypes
trait ScalaCheckPropertyChecks
trait ScalaCheckDrivenPropertyChecks
trait Configuration
trait TableDrivenPropertyChecks
trait Tables
trait Whenever
class AnyFunSuite
trait AnyFunSuiteLike
trait Documenting
trait Alerting
trait Notifying
trait Informing
trait TestRegistration
trait TestSuite
trait Suite
trait Serializable
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
Show all
trait EvalTestKit extends Assertions, ScalaCheckPropertyChecks, ArbitraryInstances

ScalaTest integration trait for evaluation testing.

ScalaTest integration trait for evaluation testing.

Provides:

  • Inline compilation via assertEval* methods using PlutusV3.compile
  • Given-based configuration injection
  • Property-based testing support via checkEval
  • Configurable PlutusVM via using parameters

This trait provides the core functionality for testing Scalus code evaluation.

Attributes

Supertypes
trait ScalaCheckPropertyChecks
trait ScalaCheckDrivenPropertyChecks
trait Configuration
trait TableDrivenPropertyChecks
trait Tables
trait Whenever
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
Show all
enum Party

Test parties for smart contract testing.

Test parties for smart contract testing.

Each party has a deterministic wallet derived from a test mnemonic, providing:

  • hdAccount: HdAccount for CIP-1852 compatible key management
  • address: Shelley address for receiving funds
  • signer: TransactionSigner for signing transactions

Many names reference classic cryptographic roles (Alice, Bob, Eve, Mallory, etc.) or notable figures in cryptography and blockchain (Hal Finney, Nick Szabo).

There are exactly 20 parties to match Yaci Devkit's default configuration, which creates 20 funded addresses from the same test mnemonic. This allows the same test code to work with both the in-memory scalus.cardano.node.Emulator (for fast unit tests) and Yaci Devkit (for integration tests).

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Party

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Party.type
trait ScalusTest extends ArbitraryInstances, Assertions

Attributes

Companion
object
Supertypes
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
Show all
Known subtypes
object ScalusTest

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ScalusTest.type
object TestUtil

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
TestUtil.type

Deprecated classlikes

object Mock

Attributes

Deprecated
[Since version 0.14.2] Use TestUtil instead
Supertypes
class Object
trait Matchable
class Any
Self type
Mock.type

Deprecated types

Attributes

Deprecated
[Since version 0.13.0] Use scalus.cardano.node.Emulator instead

Value members

Deprecated fields

Attributes

Deprecated
[Since version 0.13.0] Use scalus.cardano.node.Emulator instead