# How to write unit tests with multiple callers

**URL:** <https://forum.fuel.network/t/how-to-write-unit-tests-with-multiple-callers/6244>\
**Category:** Sway\
**Created:** [July 12, 2024, 6:03am UTC](https://forum.fuel.network/t/how-to-write-unit-tests-with-multiple-callers/6244 "2024-07-12T06:03:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lokesh-lync](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lokesh-lync/32/2902_2.png) [@lokesh-lync](https://forum.fuel.network/u/lokesh-lync)\
**Post date:** [July 12, 2024, 6:03am UTC](https://forum.fuel.network/t/how-to-write-unit-tests-with-multiple-callers/6244/1 "2024-07-12T06:03:47Z")

</div>

I want to be able to write unit tests in sway where I can use multiple accounts to call functions. How to do that. There is not much documentation on unit tests.

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 12, 2024, 9:43am UTC](https://forum.fuel.network/t/how-to-write-unit-tests-with-multiple-callers/6244/2 "2024-07-12T09:43:25Z")

</div>

no, it is not possible as of now. But I will ask the team and lyk if we are considering it in the future

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/david/32/32_2.png) [@david](https://forum.fuel.network/u/david)\
**Post date:** [July 18, 2024, 9:36am UTC](https://forum.fuel.network/t/how-to-write-unit-tests-with-multiple-callers/6244/3 "2024-07-18T09:36:54Z")

</div>

Unit tests in Sway are somewhat limited at this time.

While we plan on expanding support for these tests over time, you should currently use the Rust or TypeScript SDKs for writing more complex tests.
