Skip to content

Commit

Permalink
tester: option -l replaced with -o
Browse files Browse the repository at this point in the history
  • Loading branch information
smuuf authored and dg committed Apr 18, 2024
1 parent ccbaab4 commit 6aec407
Show file tree
Hide file tree
Showing 16 changed files with 112 additions and 240 deletions.
22 changes: 7 additions & 15 deletions tester/bg/running-tests.texy
Expand Up @@ -58,16 +58,16 @@ PHP 7.4.8 (cli) | php -n | 8 threads
-p <путь> Укажите интерпретатор PHP для запуска (по умолчанию: php).
-c <path> Искать php.ini файл (или искать в директории) <path>.
-C Использовать общесистемный php.ini.
-l | --log <путь> Запись журнала в файл <путь>.
-d <ключ=значение>... Определить INI-запись 'key' со значением 'value'.
-s Показать информацию о пропущенных тестах.
--stop-on-fail Остановить выполнение при первом сбое.
-j <num> Выполнять <num> заданий параллельно (по умолчанию: 8).
-o <console|tap|junit|none> Указать формат вывода.
-o <console|tap|junit|log|none> (напр. -o junit:output.xml)
Посочете един или повече изходни формати с незадължително име на файл.
-w | --watch <путь> Каталог просмотра.
-i | --info Показать информацию об окружении тестов и выйти.
--setup <путь> Сценарий для настройки бегущей строки.
--temp <путь> Путь к временному каталогу. По умолчанию: sys_get_temp_dir().
--temp <path> Път до временна директория. По подразбиране от sys_get_temp_dir().
--colors [1|0] Включить или отключить цвета.
--coverage <путь> Генерировать отчет о покрытии кода в файл.
--coverage-src <путь> Путь к исходному коду.
Expand All @@ -94,15 +94,6 @@ tester -p /home/user/php-7.2.0-beta/php-cgi tests
Използва се общосистемният `php.ini`. Така че на платформата UNIX се използват и всички файлове `/etc/php/{sapi}/conf.d/*.ini`. Вижте раздела [Собствен php.ini |#Own php.ini].


''-l | --log <path>'' .[filter]
-------------------------------
Напредъкът на тестването се записва във файл. Всички неуспешни, пропуснати, а също и успешни тестове:

/--pre .[terminal]
tester --log /var/log/tests.log tests
\--


-d <key=value> .[filter]
------------------------
Задава стойността на конфигурационната директива на PHP за тестове. Параметърът може да се използва многократно.
Expand All @@ -127,13 +118,14 @@ tester -d max_execution_time=20
Тестовете се изпълняват в `<num>` паралелни прецеси. Стойността по подразбиране е 8. Ако искаме да изпълняваме тестовете последователно, използваме стойност 1.


-o <console|tap|junit|none> .[filter]
-------------------------------------
Формат на изхода. По подразбиране е конзолният формат.
-o <console|tap|junit|log|none> .[filter]
-----------------------------------------
Изходен формат. По подразбиране е конзолният формат. Можете да посочите името на файла, в който ще бъде записан изходният файл (напр. `-o junit:output.xml`). Опцията `-o` може да се повтори многократно, за да се генерират няколко формата наведнъж.

- `console`: същият като по подразбиране, но в този случай не се отпечатва ASCII логото
- `tap`: [TAP формат, |https://en.wikipedia.org/wiki/Test_Anything_Protocol] подходящ за машинна обработка
- `junit`: JUnit XML формат, подходящ и за машинна обработка
- `log`: Извежда информация за хода на тестването. Всички неуспешни, пропуснати, а също и успешни тестове
- `none`: не се отпечатва нищо


Expand Down
22 changes: 7 additions & 15 deletions tester/cs/running-tests.texy
Expand Up @@ -58,16 +58,16 @@ Options:
-p <path> Specify PHP interpreter to run (default: php).
-c <path> Look for php.ini file (or look in directory) <path>.
-C Use system-wide php.ini.
-l | --log <path> Write log to file <path>.
-d <key=value>... Define INI entry 'key' with value 'value'.
-s Show information about skipped tests.
--stop-on-fail Stop execution upon the first failure.
-j <num> Run <num> jobs in parallel (default: 8).
-o <console|tap|junit|none> Specify output format.
-o <console|tap|junit|log|none> (e.g. -o junit:output.xml)
Specify one or more output formats with optional file name.
-w | --watch <path> Watch directory.
-i | --info Show tests environment info and exit.
--setup <path> Script for runner setup.
--temp <path> Path to temporary directory. Default: sys_get_temp_dir().
--temp <path> Path to temporary directory. Default by sys_get_temp_dir().
--colors [1|0] Enable or disable colors.
--coverage <path> Generate code coverage report to file.
--coverage-src <path> Path to source code.
Expand All @@ -94,15 +94,6 @@ Určuje, který `php.ini` se bude používat při spouštění testů. Ve výcho
Použije se systémové `php.ini`. Na UNIXu také všechny příslušné INI soubory `/etc/php/{sapi}/conf.d/*.ini`. Více v části [#Vlastní php.ini].


''-l | --log <path>'' .[filter]
-------------------------------
Do uvedeného souboru bude zapsán průběh testování. Všechny selhané, přeskočené, ale i úspěšné testy:

/--pre .[terminal]
tester --log /var/log/tests.log tests
\--


-d <key=value> .[filter]
------------------------
Nastavuje hodnotu PHP konfigurační direktivy pro testy. Parametr může být použit vícekrát.
Expand All @@ -127,13 +118,14 @@ Tester zastaví testování u prvního selhávajícího testu.
Určuje, kolik paralelních procesů s testy se spustí. Výchozí hodnota je 8. Chceme-li, aby všechny testy proběhly v sérii, použijeme hodnotu 1.


-o <console|tap|junit|none> .[filter]
-------------------------------------
Nastaví formát výstupu. Výchozí je formát pro konzoli.
-o <console|tap|junit|log|none> .[filter]
-----------------------------------------
Nastaví formát výstupu. Výchozí je formát pro konzoli. Můžete uvést jméno souboru, do kterého se výstup zapíše (např `-o junit:output.xml`). Volbu `-o` lze zopakovat vícekrát a vygenerovat tak více formátů najednou.

- `console`: shodné s výchozím formátem, ale v tomto případě se nezobrazí ASCII logo
- `tap`: [TAP formát |https://en.wikipedia.org/wiki/Test_Anything_Protocol] vhodný pro strojové zpracování
- `junit`: XML formát JUnit, taktéž vhodný pro strojové zpracování
- `log`: Výstupy průběhu testování. Všechny neúspěšné, přeskočené a také úspěšné testy
- `none`: nic se nevypisuje


Expand Down
22 changes: 7 additions & 15 deletions tester/de/running-tests.texy
Expand Up @@ -58,16 +58,16 @@ Options:
-p <path> Specify PHP interpreter to run (default: php).
-c <path> Look for php.ini file (or look in directory) <path>.
-C Use system-wide php.ini.
-l | --log <path> Write log to file <path>.
-d <key=value>... Define INI entry 'key' with value 'value'.
-s Show information about skipped tests.
--stop-on-fail Stop execution upon the first failure.
-j <num> Run <num> jobs in parallel (default: 8).
-o <console|tap|junit|none> Specify output format.
-o <console|tap|junit|log|none> (z. B. -o junit:output.xml)
Geben Sie ein oder mehrere Ausgabeformate mit optionalem Dateinamen an.
-w | --watch <path> Watch directory.
-i | --info Show tests environment info and exit.
--setup <path> Script for runner setup.
--temp <path> Path to temporary directory. Default: sys_get_temp_dir().
--temp <path> Pfad zum temporären Verzeichnis. Vorgabe durch sys_get_temp_dir().
--colors [1|0] Enable or disable colors.
--coverage <path> Generate code coverage report to file.
--coverage-src <path> Path to source code.
Expand All @@ -94,15 +94,6 @@ Gibt an, welche `php.ini` bei der Ausführung von Tests verwendet wird. Standard
Es wird eine systemweite `php.ini` verwendet. Auf der UNIX-Plattform also auch alle `/etc/php/{sapi}/conf.d/*.ini` -Dateien. Siehe Abschnitt [Eigene php.ini |#Own php.ini].


''-l | --log <path>'' .[filter]
-------------------------------
Der Testfortschritt wird in eine Datei geschrieben. Alle fehlgeschlagenen, übersprungenen und auch erfolgreichen Tests:

/--pre .[terminal]
tester --log /var/log/tests.log tests
\--


-d <key=value> .[filter]
------------------------
Legt den Wert der PHP-Konfigurationsrichtlinie für Tests fest. Der Parameter kann mehrfach verwendet werden.
Expand All @@ -127,13 +118,14 @@ Der Tester bricht den Test ab, sobald der erste Test fehlschlägt.
Tests laufen in einem `<num>` parallel abläuft. Der Standardwert ist 8. Wenn wir die Tests in Serie laufen lassen wollen, verwenden wir den Wert 1.


-o <console|tap|junit|none> .[filter]
-------------------------------------
Ausgabeformat. Standard ist das Konsolenformat.
-o <console|tap|junit|log|none> .[filter]
-----------------------------------------
Ausgabeformat. Standardmäßig wird das Konsolenformat verwendet. Sie können den Namen der Datei angeben, in die die Ausgabe geschrieben werden soll (z. B. `-o junit:output.xml`). Die Option `-o` kann mehrmals wiederholt werden, um mehrere Formate auf einmal zu erzeugen.

- `console`: wie Standard, aber das ASCII-Logo wird in diesem Fall nicht gedruckt
- `tap`: [TAP-Format |https://en.wikipedia.org/wiki/Test_Anything_Protocol], geeignet für die maschinelle Verarbeitung
- `junit`: JUnit XML-Format, auch für die maschinelle Verarbeitung geeignet
- `log`: Gibt den Testfortschritt aus. Alle fehlgeschlagenen, übersprungenen und auch erfolgreichen Tests
- `none`: es wird nichts gedruckt


Expand Down
22 changes: 7 additions & 15 deletions tester/el/running-tests.texy
Expand Up @@ -58,16 +58,16 @@ Options:
-p <path> Specify PHP interpreter to run (default: php).
-c <path> Look for php.ini file (or look in directory) <path>.
-C Use system-wide php.ini.
-l | --log <path> Write log to file <path>.
-d <key=value>... Define INI entry 'key' with value 'value'.
-s Show information about skipped tests.
--stop-on-fail Stop execution upon the first failure.
-j <num> Run <num> jobs in parallel (default: 8).
-o <console|tap|junit|none> Specify output format.
-o <console|tap|junit|log|none> (π.χ. -o junit:output.xml)
Καθορίστε μία ή περισσότερες μορφές εξόδου με προαιρετικό όνομα αρχείου.
-w | --watch <path> Watch directory.
-i | --info Show tests environment info and exit.
--setup <path> Script for runner setup.
--temp <path> Path to temporary directory. Default: sys_get_temp_dir().
--temp <path> Διαδρομή προς τον προσωρινό κατάλογο. Προεπιλογή από την sys_get_temp_dir().
--colors [1|0] Enable or disable colors.
--coverage <path> Generate code coverage report to file.
--coverage-src <path> Path to source code.
Expand All @@ -94,15 +94,6 @@ tester -p /home/user/php-7.2.0-beta/php-cgi tests
Χρησιμοποιείται ένα `php.ini` σε όλο το σύστημα. Έτσι, στην πλατφόρμα UNIX, όλα τα αρχεία `/etc/php/{sapi}/conf.d/*.ini` επίσης. Δείτε την ενότητα [Own php.ini |#Own php.ini].


''-l | --log <path>'' .[filter]
-------------------------------
Η πρόοδος των δοκιμών γράφεται σε αρχείο. Όλες οι αποτυχημένες, παραλειφθείσες και επιτυχημένες δοκιμές:

/--pre .[terminal]
tester --log /var/log/tests.log tests
\--


-d <key=value> .[filter]
------------------------
Ορίζει την τιμή της οδηγίας διαμόρφωσης PHP για δοκιμές. Η παράμετρος μπορεί να χρησιμοποιηθεί πολλές φορές.
Expand All @@ -127,13 +118,14 @@ tester -d max_execution_time=20
Οι δοκιμές εκτελούνται σε ένα `<num>` παράλληλες διεργασίες. Η προεπιλεγμένη τιμή είναι 8. Αν θέλουμε να εκτελούμε δοκιμές σε σειρά, χρησιμοποιούμε την τιμή 1.


-o <console|tap|junit|none> .[filter]
-------------------------------------
Μορφή εξόδου. Η προεπιλογή είναι η μορφή κονσόλας.
-o <console|tap|junit|log|none> .[filter]
-----------------------------------------
Μορφή εξόδου. Η προεπιλογή είναι η μορφή κονσόλας. Μπορείτε να καθορίσετε το όνομα του αρχείου στο οποίο θα γραφτεί η έξοδος (π.χ. `-o junit:output.xml`). Η επιλογή `-o` μπορεί να επαναληφθεί πολλές φορές για την ταυτόχρονη παραγωγή πολλαπλών μορφών.

- `console`: η ίδια με την προεπιλογή, αλλά το λογότυπο ASCII δεν εκτυπώνεται σε αυτή την περίπτωση.
- `tap`: [Μορφή TAP |https://en.wikipedia.org/wiki/Test_Anything_Protocol] κατάλληλη για μηχανική επεξεργασία.
- `junit`: Μορφή JUnit XML, κατάλληλη και για μηχανική επεξεργασία.
- `log`: Εξάγει την πρόοδο των δοκιμών. Όλες οι αποτυχημένες, παραλειφθείσες και επιτυχημένες δοκιμές
- `none`: δεν εκτυπώνεται τίποτα


Expand Down
22 changes: 7 additions & 15 deletions tester/en/running-tests.texy
Expand Up @@ -58,16 +58,16 @@ Options:
-p <path> Specify PHP interpreter to run (default: php).
-c <path> Look for php.ini file (or look in directory) <path>.
-C Use system-wide php.ini.
-l | --log <path> Write log to file <path>.
-d <key=value>... Define INI entry 'key' with value 'value'.
-s Show information about skipped tests.
--stop-on-fail Stop execution upon the first failure.
-j <num> Run <num> jobs in parallel (default: 8).
-o <console|tap|junit|none> Specify output format.
-o <console|tap|junit|log|none> (e.g. -o junit:output.xml)
Specify one or more output formats with optional file name.
-w | --watch <path> Watch directory.
-i | --info Show tests environment info and exit.
--setup <path> Script for runner setup.
--temp <path> Path to temporary directory. Default: sys_get_temp_dir().
--temp <path> Path to temporary directory. Default by sys_get_temp_dir().
--colors [1|0] Enable or disable colors.
--coverage <path> Generate code coverage report to file.
--coverage-src <path> Path to source code.
Expand All @@ -94,15 +94,6 @@ Specifies which `php.ini` will be used when running tests. By default, no php.in
A system-wide `php.ini` is used. So on UNIX platform, all the `/etc/php/{sapi}/conf.d/*.ini` files too. See [#Own php.ini] section.


''-l | --log <path>'' .[filter]
-------------------------------
Testing progress is written into file. All failed, skipped and also successful tests:

/--pre .[terminal]
tester --log /var/log/tests.log tests
\--


-d <key=value> .[filter]
------------------------
Sets the value of the PHP configuration directive for tests. The parameter can be used multiple times.
Expand All @@ -127,13 +118,14 @@ Tester stops testing upon the first failing test.
Tests run in a `<num>` parallel precesses. Default value is 8. If we wish to run tests in series, we use value 1.


-o <console|tap|junit|none> .[filter]
-------------------------------------
Output format. Default is the console format.
-o <console|tap|junit|log|none> .[filter]
-----------------------------------------
Output format. Default is the console format. You can specify the name of the file into which the output will be written (e.g., `-o junit:output.xml`). The `-o` option can be repeated multiple times to generate multiple formats at once.

- `console`: the same as default, but the ASCII logo is not printed in this case
- `tap`: [TAP format |https://en.wikipedia.org/wiki/Test_Anything_Protocol] appropriate for machine processing
- `junit`: JUnit XML format, appropriate for machine processing too
- `log`: Outputs testing progress. All failed, skipped and also successful tests
- `none`: nothing is printed


Expand Down

0 comments on commit 6aec407

Please sign in to comment.