Diagram · Deliberately broken fixtures beside the rejection each should trigger
Diagram · Deliberately broken fixtures beside the rejection each should trigger View full-size figure

A pass can mean two things

The release validator keeps passing. That reads as a good signal, and it admits two readings: the build really is clean, or the validator is checking nothing. The second becomes likely the moment you edit a rule. If you changed one condition and nothing has been caught since, that is usually the cause.

Keep deliberately broken inputs around

To know the validator is alive, prepare inputs that must be refused and run them regularly. We used three.

All three were refused as expected, and that is the evidence that the validator does not pass things quietly.

  1. A fixture with an old build archive inside the package
  2. A fixture with a scratch probe text file inside
  3. A fixture with a required font file removed
[TestCase("with_old_zip", ExpectedResult = false)]
[TestCase("with_probe_file", ExpectedResult = false)]
[TestCase("missing_font", ExpectedResult = false)]
[TestCase("clean_package", ExpectedResult = true)]
public bool ValidatorVerdict(string fixtureName)
    => ReleaseValidator.Accepts(FixturePath(fixtureName));

Change a rule, rerun the fixtures

Checking only the passing case becomes a habit when rules change, and then you cannot tell when the refusal ability disappeared. The rule is that any commit touching a condition runs the negative fixtures with it.

$ dotnet test --filter ValidatorVerdict
  with_old_zip      rejected   ok
  with_probe_file   rejected   ok
  missing_font      rejected   ok
  clean_package     accepted   ok

Expected result and next step

Every negative fixture being refused means the validator is alive. Scope is next: confirm the validator inspects the same path as the real release artifact. If it watches a different folder, a pass means nothing.

Verification scope

Official documentation review

Verified

Reviewed the article's code and procedure against official Unity documentation and marked it ready for publication. This is not a claim of an independent Unity project or device reproduction; version- or device-specific reports will be checked in that environment as follow-up.

Official documentation checkedTest Framework package documentation ↗