PocketIC Version 9.0.1: reusing PocketIC state in tests

Pocket IC

We have released PocketIC server 9.0.1 and its compatible libraries:

The main new feature included in this release is support for conveniently reusing PocketIC state in tests. We’ve also improved support on Windows and added PocketIC tests on Windows to CI.

Changelog

Here’s an overview of the new features included in the latest PocketIC release and their use cases:

  • reusing PocketIC state in tests: running multiple tests from the same state (tutorial);
  • new type to represent time in PocketIC: ensure nanosecond precision on all supported platforms - Windows, MacOS, Linux (notes);
  • VetKd support (tutorial);
  • the Rust library uses the ic-management-canister-types crate (v0.3.0): better inter-operability.

For a complete list of changes, see the server changelog and the Rust library changelog.

Conclusion

Your feedback helps us improve PocketIC, so please let us know your thoughts and questions in this thread.

Thank you for providing feature requests and feedback on your PocketIC user experience!

10 Likes

Nice work! Loving how quickly PocketIC is progressing. What’s coming next?

We’re currently working on allowing to specify ICP features (e.g., ICP token, cycles ledger etc.) to be supported (i.e., the relevant canisters to be deployed with appropriate configuration) as part of PocketIC instance creation.

2 Likes