Skip to content
Extraits de code Groupes Projets
Valider 56a71545 rédigé par mattab's avatar mattab
Parcourir les fichiers

I'm using Meld on Ubuntu to compare processed VS expected files. slightly...

I'm using Meld on Ubuntu to compare processed VS expected files. slightly updating README to clarifying workflow.
parent 23500dbf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
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