Skip to content
Extraits de code Groupes Projets
Valider c61fd9b9 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

fix successMessage() was called twice, list how to run ui test

parent ccb320fa
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -45,19 +45,23 @@ class GenerateTest extends GeneratePluginBase
$whitelistFiles = $this->getTestFilesWhitelist($testType);
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage($output, array(
sprintf('Test %s for plugin %s generated.', $testName, $pluginName),
'You can now start writing beautiful tests!',
));
$this->writeSuccessMessage($output, array(
'To run all your plugin tests, execute the command: ',
sprintf('./console tests:run %s', $pluginName),
'To run only this test: ',
sprintf('./console tests:run %s', $testName),
'Enjoy!'
));
$messages = array(
sprintf('Test %s for plugin %s generated.', $testName, $pluginName),
);
if (strtolower($testType) === 'ui') {
$messages[] = 'To run this test execute the command: ';
$messages[] = sprintf('./console tests:run-ui %s', $testName);
} else {
$messages[] = 'To run all your plugin tests, execute the command: ';
$messages[] = sprintf('./console tests:run %s', $pluginName);
$messages[] = 'To run only this test: ';
$messages[] = sprintf('./console tests:run %s', $testName);
}
$messages[] = 'Enjoy!';
$this->writeSuccessMessage($output, $messages);
}
/**
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter