# Local Development test environment

**URL:** <https://forum.dfinity.org/t/local-development-test-environment/26808>\
**Category:** Developers\
**Created:** [January 19, 2024, 8:23am UTC](https://forum.dfinity.org/t/local-development-test-environment/26808 "2024-01-19T08:23:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![noobie\_doobie\_doo](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@noobie\_doobie\_doo](https://forum.dfinity.org/u/noobie_doobie_doo)\
**Post date:** [January 19, 2024, 8:23am UTC](https://forum.dfinity.org/t/local-development-test-environment/26808/1 "2024-01-19T08:23:35Z")

</div>

I have set up the ICP ledger locally and have tested my dapp with it.  
Now i want to test some functions of cycle minting canister (locally), but couldn’t find a resource for this task.

Is there a way to do it ?

---

<div class="post-metadata">

**Author:** ![domwoe](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/domwoe/32/5165_2.png) [@domwoe](https://forum.dfinity.org/u/domwoe)\
**Post date:** [January 19, 2024, 8:28am UTC](https://forum.dfinity.org/t/local-development-test-environment/26808/2 "2024-01-19T08:28:08Z")

</div>

Have a look at this recent thread: [Could we deploy a canister on a specified subnet? - #24 by Severin](https://forum.dfinity.org/t/could-we-deploy-a-canister-on-a-specified-subnet/7936/24)

There @Vivienne suggested to use this [fake-cmc](https://github.com/dfinity/cycles-ledger/tree/main/fake-cmc) locally.

---

<div class="post-metadata">

**Author:** ![noobie\_doobie\_doo](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@noobie\_doobie\_doo](https://forum.dfinity.org/u/noobie_doobie_doo)\
**Post date:** [January 19, 2024, 11:34am UTC](https://forum.dfinity.org/t/local-development-test-environment/26808/3 "2024-01-19T11:34:28Z")

</div>

I looked into the code, there is no top-up function on the fake cmc  
i wanted to specifically top-up my canister by calling this function.

Is there any way to mimic the mainnet behaviour on a local environment?

**My overall goal is to use local ICP token for transfer functionality and use them to top-up my canister**

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [January 19, 2024, 12:29pm UTC](https://forum.dfinity.org/t/local-development-test-environment/26808/4 "2024-01-19T12:29:46Z")

</div>

In this case it’s probably easiest if you use the dfx nns extension. [Here’s](https://github.com/dfinity/sdk/blob/master/e2e/tests-dfx/ledger.bash#L15-L16) how we install it in CI
