How to do testing? #1465
-
Is there any way to run unit tests with stride? In Unity you can write tests, where you launch a scene, and then test the state of the scene after doing some actions. I have found xunit.runner.stride on nuget, but I could not find any documentation or github issue about this topic. Is something similar to the Unity Test runner available? Maybe something something like the AltUnity Tester? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can check the sources for how test are written. For example physics test: CharacterTest which goes over a few frames of simulation and asserts the state of entities; example visual game test: Particles/GameTest it loads a predefined scene, runs 60 frames and then takes a screenshot which is later compared for a visual parity test. |
Beta Was this translation helpful? Give feedback.
You can check the sources for how test are written. For example physics test: CharacterTest which goes over a few frames of simulation and asserts the state of entities; example visual game test: Particles/GameTest it loads a predefined scene, runs 60 frames and then takes a screenshot which is later compared for a visual parity test.