Skip to content

Conversation

@berthertogen
Copy link
Contributor

Fixes #609

Changes

Please provide a brief description of the changes here.

  • Add PersistenceTestKit with methods for testing journal and snapshot behaviors, enabling effective simulation of persistence scenarios.
  • Updated Akka.Hosting.TestKit.csproj to include Akka.Persistence.TestKit and a reference to Akka.Persistence.Hosting.
  • Add TestJournalSpec and TestSnapshotStoreSpec with tests for new persistence functionality, covering various scenarios like successful writes and recovery.

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Latest dev Benchmarks

Include data from the relevant benchmark prior to this change here.

This PR's Benchmarks

Include data from after this change here.

- Add `PersistenceTestKit` with methods for testing journal and snapshot behaviors, enabling effective simulation of persistence scenarios.
- Updated `Akka.Hosting.TestKit.csproj` to include `Akka.Persistence.TestKit` and a reference to `Akka.Persistence.Hosting`.
- Add `TestJournalSpec` and `TestSnapshotStoreSpec` with tests for new persistence functionality, covering various scenarios like successful writes and recovery.
@berthertogen
Copy link
Contributor Author

This example goes against code reusability. I've copied over the PersistanceTestKit implementation and its tests to the Akka.Hosting.TestKit package.

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@berthertogen berthertogen requested a review from Arkatufus June 22, 2025 05:30
Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PersistenceTestKit to Akka.Hosting.TestKit

2 participants