# Best way to set up canton test fixtures?

**URL:** <https://forum.canton.network/t/best-way-to-set-up-canton-test-fixtures/4043>\
**Category:** App Development\
**Tags:** canton\
**Created:** [March 2, 2022, 8:46pm UTC](https://forum.canton.network/t/best-way-to-set-up-canton-test-fixtures/4043 "2022-03-02T20:46:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Porter](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/daniel_porter/32/1171_2.png) [@Daniel\_Porter](https://forum.canton.network/u/Daniel_Porter)\
**Post date:** [March 2, 2022, 8:46pm UTC](https://forum.canton.network/t/best-way-to-set-up-canton-test-fixtures/4043/1 "2022-03-02T20:46:15Z")

</div>

I’d like to run some tests that programmatically manipulate a canton instance. I heard a rumor the other day that we have a canton sandbox - I imagine this is what I actually want, but maybe not. What are the options/what sounds like a sensible approach?

---

<div class="post-metadata">

**Author:** ![Ratko\_Veprek](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ratko_veprek/32/206_2.png) [@Ratko\_Veprek](https://forum.canton.network/u/Ratko_Veprek)\
**Post date:** [March 3, 2022, 12:39pm UTC](https://forum.canton.network/t/best-way-to-set-up-canton-test-fixtures/4043/2 "2022-03-03T12:39:32Z")

</div>

The Daml Sandbox is now Canton based. The sandbox is just a specific configuration with 1 participant and 1 domain with in-memory storage. Otherwise, it’s a vanilla Canton system.

Generally, for integration testing of Canton, we use our “scalatest” based testing that allows us to run “integration tests” as unittests. These environments give you the equivalent of the Canton Console in your IDE and you can run a series of command as a “unittest”.

> <https://github.com/digital-asset/canton/blob/c6035298c302500f1c4bbe8f39145ea0dddb5168/community/app/src/test/scala/com/digitalasset/canton/integration/tests/ExampleIntegrationTest.scala#L77-L83>

The `env` object therein gives you a full console environment if you add `import env._`.

The test tooling is available in our open source drop as well, but the majority of the tests are still in the enterprise bundle.

---

<div class="post-metadata">

**Author:** ![Daniel\_Porter](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/daniel_porter/32/1171_2.png) [@Daniel\_Porter](https://forum.canton.network/u/Daniel_Porter)\
**Post date:** [March 3, 2022, 1:34pm UTC](https://forum.canton.network/t/best-way-to-set-up-canton-test-fixtures/4043/3 "2022-03-03T13:34:48Z")

</div>

this looks perfect, thanks!
