#Possible to do runtime tests on networked objects?

1 messages · Page 1 of 1 (latest)

half siren
#

is it possible to simuate a server and multiple clients on the same device for a unity automatic runtime test with NGO?

I know I can use stuff like ParrelSync for testing on multiple unity instances, but i mean the automatic tests. I've tried doing things like making multiple NetworkManagers and the issue is I need them to be treated separately and it just doesn't seem to work... but I also feel like Unity seems to lack on testing a bit here.

Thank you 😊

topaz osprey
half siren
topaz osprey
half siren
#

Oooh that sounds perfect thank you

topaz osprey
#

I'm pretty sure its all built on top of the Unity Test Framework But I know next to nothing about unit tests in general

half siren
#

Fair enough. I was trying to build my own network tests on the unity test framework, so having a better foundation to build tests on would be really handy. ill look into it, thank you!

half siren
topaz osprey
half siren
half siren
#

@marble peak this is the thing I'm talking abt

half siren
# topaz osprey in the repo is unity own tests. You can find the TestHelpers for making your own...

I'm sorry, but I'm having a lot of trouble getting this to work. I've tried cloning the package straight from git (instead of package manager) but I still can't access the test helpers. I think the asmdef for it isn't included in the package, and I don't really know what I can do about that? I tried copying the TestHelpers folder (Found in Packages folder) into my project but it has a bunch of internal classes so that failed. So it seems I can't access it with referencing the assembly or copying it over?

#

Ofc it would be great if I could somehow expose the asmdef (Unity.Netcode.Runtime.TestHelpers) to my project but I'm not sure how to do that at all

#

definitely as the Unity.Netcode.Runtime.Tests asmdef shows that the test helpers can't actually be found

topaz osprey
half siren
half siren
#

Right I'm able to open the test project.

#

OK so all of their runtime tests are showing up

#

So I gotta just figure out how to get that into my project I suppose

#

Right so it looks like the testproject has access to these test helpers

#

From the unity netcode package

#

So my question is, how did the testproject expose this assembly for use

#

It says its a missing assembly

#

But... everything compiles

#

So how does that work hm

#

Maybe i need to just reference them and believe they exist lmao?

half siren
#

Right yeah so I tried just putting the same asmdef references into my project, having the package installed from git, and then copying a single test across to my project from their test project and it says Type of namespace 'NetcodeIntegrationTest' could not be found. This class is inside of the test helpers

#

So I don't know how their test project managed to reference it lol and I couldn't