Making Translation Strings Test Informative

This commit is contained in:
SirLouen 2025-08-11 23:13:58 +02:00
parent ca34869b2c
commit fb74b42206
1 changed files with 8 additions and 2 deletions

View File

@ -91,7 +91,13 @@ final class TranslationCompletenessTest extends TestCase
}
}
// If we have no extra and no missing translations, $err will be empty.
self::assertEmpty($err, $err);
// Make this test informational only: skip with details instead of failing.
if ($err !== '') {
$this->markTestSkipped("Translation completeness (informational):\n" . $err);
return;
}
// No differences found: count a dummy assertion so the test is not marked as risky.
$this->addToAssertionCount(1);
}
}