The engine’s source code contains a test harness for the Unreal Header Tool (UHT) but the tests don’t seem to exist in the repository.
In the UHT test harness’s source, it looks like the tests should exist in Source/Programs/UnrealBuildTool.Tests
but that directory doesn’t exist. Are the tests not publicly available?