What is the best approach to test authoritative match?

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?

@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

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.

1 Like