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
path: root/tests
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-05-14 07:15:35 +0400
committermattab <matthieu.aubry@gmail.com>2013-05-14 07:15:35 +0400
commit56a715453bedd9d14de02cf561f34eab3baba1af (patch)
treeb23f0eea26cbf74e0081de480cda408be9624865 /tests
parent23500dbfadd29cfeb6a51cb2a99622b7ef11427a (diff)
I'm using Meld on Ubuntu to compare processed VS expected files. slightly updating README to clarifying workflow.
Diffstat (limited to 'tests')
-rw-r--r--tests/README.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/README.md b/tests/README.md
index f766013cf2..f018007dd6 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -25,10 +25,15 @@ Integration tests allow to test how major Piwik components interact together.
A test will typically generate hits to the Tracker (record visits and page views)
and then test all API responses and for each API output. It then checks that they match expected XML (or CSV, json, etc.).
If a test fails, you can compare the processed/ and expected/ directories in a graphical
-text compare tool, such as WinMerge on Win, to easily view changes between files.
+text compare tool, such as WinMerge on Win, or MELD on Linux, to easily view changes between files.
+
+For example using Meld, click on "Start new comparison", "Directory comparison",
+in "Original" select "path/to/piwik/tests/PHPUnit/Integration/expected"
+in "Mine" select "path/to/piwik/tests/PHPUnit/Integration/processed"
+
If changes are expected due to the code changes you make, simply copy the file from processed/ to
-expected/, and test will then pass. Otherwise, if you didn't expect to modify the API outputs,
-it might be that your changes are breaking some features unexpectedly.
+expected/, and test will then pass. Copying files is done easily using Meld (ALT+LEFT).
+Otherwise, if you didn't expect to modify the API outputs, it might be that your changes are breaking some features unexpectedly.
## PHPUnit Tests