Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-02-03 06:35:23 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-02-03 06:35:23 +0300
commit5bacc262097a124b30e3862097ec1d88e9ff7178 (patch)
tree7f3ca4ebd9e1f2c1b3ae95f5a569adfb20d1939a /plugins/CoreConsole
parentfc08408eb5566d28ce37e43849fb786c9e5cae8a (diff)
include UI specs in Piwik repo and run tests in this repository.
On local it does not work and I have not figured out why. Maybe it works on travis though?
Diffstat (limited to 'plugins/CoreConsole')
-rw-r--r--plugins/CoreConsole/Commands/DevelopmentSyncUITestScreenshots.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/CoreConsole/Commands/DevelopmentSyncUITestScreenshots.php b/plugins/CoreConsole/Commands/DevelopmentSyncUITestScreenshots.php
index f80864ad43..be1bedd05d 100644
--- a/plugins/CoreConsole/Commands/DevelopmentSyncUITestScreenshots.php
+++ b/plugins/CoreConsole/Commands/DevelopmentSyncUITestScreenshots.php
@@ -29,7 +29,7 @@ class DevelopmentSyncUITestScreenshots extends ConsoleCommand
{
$this->setName('development:sync-ui-test-screenshots');
$this->setDescription('For Piwik core devs. Copies screenshots '
- . 'from travis artifacts to tests/PHPUnit/UI/expected-ui-screenshots/');
+ . 'from travis artifacts to tests/UI/expected-ui-screenshots/');
$this->addArgument('buildnumber', InputArgument::REQUIRED, 'Travis build number you want to sync.');
$this->addArgument('screenshotsRegex', InputArgument::OPTIONAL,
'A regex to use when selecting screenshots to copy. If not supplied all screenshots are copied.', '.*');
@@ -74,7 +74,7 @@ class DevelopmentSyncUITestScreenshots extends ConsoleCommand
&& preg_match("/" . $screenshotsRegex . "/", $file)
) {
if ($testPlugin == null) {
- $downloadTo = "tests/PHPUnit/UI/expected-ui-screenshots/$file";
+ $downloadTo = "tests/UI/expected-ui-screenshots/$file";
} else {
$downloadTo = "plugins/$testPlugin/tests/UI/expected-ui-screenshots/$file";
}
@@ -99,15 +99,15 @@ class DevelopmentSyncUITestScreenshots extends ConsoleCommand
$output->writeln('');
$output->writeln("If all downloaded screenshots are valid you may push them with these commands:");
$output->writeln('');
- $commands = "cd tests/PHPUnit/UI/
+ $commands = "cd tests/UI/expected-ui-screenshots
git pull
-git add expected-ui-screenshots/
-git commit -m'' # WRITE A COMMIT MESSAGE
+git add .
+git commit -m '' # WRITE A COMMIT MESSAGE
git push
cd ..
git pull
-git add UI
-git commit -m'' #WRITE A COMMIT MESSAGE
+git add expected-ui-screenshots
+git commit -m '' #WRITE A COMMIT MESSAGE
git push";
$output->writeln($commands);
}