Unity Test Framework tests for VRChat worlds, with your UdonSharp behaviours running in a real ClientSim session.
[!NOTE] I use AI coding tools to draft code and tests, dig through the VRChat SDK, ClientSim and UdonSharp source, and rerun checks that would take hours by hand. I design the kit and review each AI-drafted change before it’s merged, and every behavior of the kit has a test you can run yourself.
Udon Test Kit is a TsVRC project by Antony Seas. It isn’t affiliated with, endorsed by, or sponsored by VRChat Inc.
UdonHost, which runs behaviours as their compiled Udon programs, since Udon doesn’t always do
what the C# does.SendCustomEvent.UdonSharpUploadCompile and BuiltWorld, to check that your world compiles for upload and what
its build holds.PrivateFieldAccess for private members, and TestRun to keep editor tooling out of test runs.Invoke-UnityTests.ps1 and
run_unity_tests.sh, which run the tests of any Unity project
from PowerShell or Bash and report the ones that didn’t pass.Requires Unity 2022.3 and the VRChat Worlds SDK 3.10.5 or a later 3.x version, in the Editor on Windows or on Linux with the Windows build target, batch mode included.
Install Udon Test Kit (com.tsvrc.udon-test-kit) as
Install a TsVRC package describes. The .unitypackage
is on the releases page. Then create your test
assemblies with Assets > Create > TsVRC > Udon Test Kit > Test Assemblies, as
Add Udon Test Kit to your project
describes.
The guides and the reference are at tsvrc.com/docs/udon-test-kit.
Bug reports, fixes and new helpers are welcome. CONTRIBUTING.md covers the setup, running the tests and opening a pull request. Ask questions in GitHub Discussions, and report a security issue privately, as SECURITY.md describes. The Code of Conduct applies to everyone taking part.
MIT, see LICENSE.md. The TsVRC name and logo are covered separately, in TRADEMARK.md.
com.tsvrc.udon-test-kit
https://tsvrc.com/docs/udon-test-kit/intro
1.1.0 (Changelog)
2022.3 or later
No legacy packages