mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-26 09:28:07 +08:00
Host IMGUI tests on a detached panel without creating a native editor window.
Code style regression tests
Run the formatter and its tests with the SDK pinned by the repository:
dotnet test tools/CodeStyle.Tests
The suite uses NUnit and the real .NET CLI; Python and Unity are not required.
CLI cases create isolated Git repositories, invoke the built formatter, and
compile and execute literal fixtures for both PAL3 and PAL3A. Unit cases
cover selective whitespace boundaries and the final file-write preflight.
By default fixtures live in the operating system temporary directory. Set
PAL3_CODE_STYLE_TEST_ROOT to place them in a chosen QA directory, and set
PAL3_CODE_STYLE_KEEP_FIXTURES=1 to retain them for diagnosis. Child processes
receive the fixture as their temporary directory and have a three-minute limit.