# What is the best approach to test authoritative match?

**URL:** <https://forum.heroiclabs.com/t/what-is-the-best-approach-to-test-authoritative-match/1172>\
**Category:** Local Setup\
**Tags:** server-framework\
**Created:** [November 24, 2020, 2:45am UTC](https://forum.heroiclabs.com/t/what-is-the-best-approach-to-test-authoritative-match/1172 "2020-11-24T02:45:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chounry](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/chounry/32/406_2.png) [@chounry](https://forum.heroiclabs.com/u/chounry)\
**Post date:** [November 24, 2020, 2:45am UTC](https://forum.heroiclabs.com/t/what-is-the-best-approach-to-test-authoritative-match/1172/1 "2020-11-24T02:45:19Z")

</div>

I want to create test on the extend module/plugin server logic? That means i also can debug each line of code.

How can I do that?

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [November 25, 2020, 9:40am UTC](https://forum.heroiclabs.com/t/what-is-the-best-approach-to-test-authoritative-match/1172/2 "2020-11-25T09:40:13Z")

</div>

@chounry The authoritative multiplayer engine has an API in the game server described by the interface types in the runtime package:

[https://github.com/heroiclabs/nakama-common](https://github.com/heroiclabs/nakama-common)

This makes it quite easy to test the code because you can call the functions that the multiplayer engine would call and use mocks on the parts that are passed in by the server. We don’t have an example of it right now but I’ll see whether we can add an example of it to the upcoming project template that we’ll open-source.
