Packages

p

akka.remote

testkit

package testkit

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait FlightRecordingSupport extends AnyRef

    Provides test framework agnostic methods to dump the artery flight recorder data after a test has completed - you must integrate the logic with the testing tool you use yourself.

    Provides test framework agnostic methods to dump the artery flight recorder data after a test has completed - you must integrate the logic with the testing tool you use yourself.

    The flight recorder must be enabled and the flight recorder destination must be an absolute file name so that the akka config can be used to find it. For example you could ensure a unique file per test using something like this in your config:

    akka.remote.artery.advanced.flight-recorder {
      enabled=on
      destination=target/flight-recorder-${UUID.randomUUID().toString}.afr
    }

    You need to hook in dump and deletion of files where it makes sense in your tests. (For example, dump after all tests has run and there was a failure and then delete)

  2. abstract class MultiNodeConfig extends AnyRef

    Configure the role names and participants of the test, including configuration settings.

    Configure the role names and participants of the test, including configuration settings.

    Annotations
    @ccompatUsedUntil213()
  3. abstract class MultiNodeSpec extends TestKit with MultiNodeSpecCallbacks

    Note: To be able to run tests with everything ignored or excluded by tags you must not use testconductor, or helper methods that use testconductor, from the constructor of your test class.

    Note: To be able to run tests with everything ignored or excluded by tags you must not use testconductor, or helper methods that use testconductor, from the constructor of your test class. Otherwise the controller node might be shutdown before other nodes have completed and you will see errors like: AskTimeoutException: sending to terminated ref breaks promises. Using lazy val is fine.

  4. trait MultiNodeSpecCallbacks extends AnyRef

    Use this to hook MultiNodeSpec into your test framework lifecycle, either by having your test extend MultiNodeSpec and call these methods or by creating a trait that calls them and then mixing that trait with your test together with MultiNodeSpec.

    Use this to hook MultiNodeSpec into your test framework lifecycle, either by having your test extend MultiNodeSpec and call these methods or by creating a trait that calls them and then mixing that trait with your test together with MultiNodeSpec.

    Example trait for MultiNodeSpec with ScalaTest

    trait STMultiNodeSpec extends MultiNodeSpecCallbacks with WordSpecLike with MustMatchers with BeforeAndAfterAll {
      override def beforeAll() = multiNodeSpecBeforeAll()
      override def afterAll() = multiNodeSpecAfterAll()
    }

Value Members

  1. object MultiNodeSpec

Ungrouped