#Strip out runtime test

1 messages · Page 1 of 1 (latest)

zenith steeple
#

Currently I'm using Entities test bootstrap code to write test but I found that official didn't strip out all the a couple of runtime test systems by default that when enter play mode u will see there's runtime test systems keep running. Can official strip out all the runtime test by using scripting define symbol like RUNTIME_TEST? Same with dots netcode but I'm not sure whether dots netcode has runtime test system or not.

native minnow
#

my trick for testing systems to avoid them at runtime is in my testing assembly create an AssemblyInfo.cs file and add

[assembly: DisableAutoCreation]```
#

then manually create systems that you are testing

native minnow
#

Oh wait maybe I misunderstood your problem

#

Is it Unity's test systems that are being added at runtime?

#

Not your own?

zenith steeple
native minnow
#

How are you adding them to your test suite?

#

did you make a copy of the entities package?

#

Because yeah that's going to be a bit more of a pain to remove

zenith steeple
native minnow
#

ah ok yeah you did that

#

I got no good solution for you then sorry, you're basically telling them to run these systems