Skip to content
Extraits de code Groupes Projets
Valider fb040fea rédigé par sgiehl's avatar sgiehl
Parcourir les fichiers

Adds test checking if all screenshots are stored in lfs

parent 432c73ea
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -91,6 +91,25 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase
$this->checkFilesAreInJpgFormat($files);
}
public function test_screenshotsStoredInLfs()
{
$screenshots = Filesystem::globr(PIWIK_INCLUDE_PATH . '/tests/UI/expected-screenshots', '*.png');
$cleanPath = function ($value) {
return str_replace(PIWIK_INCLUDE_PATH . '/', '', $value);
};
$screenshots = array_map($cleanPath, $screenshots);
$storedLfsFiles = explode("\n", `git lfs ls-files`);
$cleanRevision = function ($value) {
$parts = explode(' - ', $value);
return array_pop($parts);
};
$storedLfsFiles = array_map($cleanRevision, $storedLfsFiles);
$diff = array_diff($screenshots, $storedLfsFiles);
$this->assertEmpty($diff, 'Some Screenshots are not stored in LFS: ' . implode("\n", $diff));
}
public function testCheckThatConfigurationValuesAreProductionValues()
{
$this->_checkEqual(array('Debug' => 'always_archive_data_day'), '0');
......
Subproject commit fd4eca233a015b79e367f9bce9e8350db7a08970
Subproject commit e041bdf1a6b63024478852a58a69dd826e8aca42
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter