On Tue, Nov 04, 2014 at 09:44:58PM -0800, Steven Lu wrote: > Hello > > I am looking for some test tools, test cases, test dataset for nginx to test > if my changes introduce any regression issues. But I did not find them in the > nginx community. Can anyone point me where I can find them if there are? If > no, how to do something like pre-commit test for nginx?
Мне одному кажется, что этот вопрос уже задали достаточное кол-во раз, чтобы можно было разместить информацию о нашем test suite где-нибудь в документации? Набросок: diff --git a/xml/en/docs/contributing_changes.xml b/xml/en/docs/contributing_changes.xml --- a/xml/en/docs/contributing_changes.xml +++ b/xml/en/docs/contributing_changes.xml @@ -9,7 +9,7 @@ <article name="Contributing Changes" link="/en/docs/contributing_changes.html" lang="en" - rev="1"> + rev="2"> <section id="getting_sources" name="Getting Sources"> @@ -117,6 +117,16 @@ case, if possible. </listitem> +<listitem> +Passing your changes through the test suite is a good way to ensure +that they do not cause a regression. +The <link url="http://hg.nginx.org/nginx-tests">repository</link> with +tests can be cloned with the following command: +<programlisting> +hg clone http://hg.nginx.org/nginx-tests +</programlisting> +</listitem> + </list> </para> diff --git a/xml/ru/docs/contributing_changes.xml b/xml/ru/docs/contributing_changes.xml --- a/xml/ru/docs/contributing_changes.xml +++ b/xml/ru/docs/contributing_changes.xml @@ -9,7 +9,7 @@ <article name="Внесение изменений" link="/ru/docs/contributing_changes.html" lang="ru" - rev="1"> + rev="2"> <section id="getting_sources" name="Получение исходного кода"> @@ -117,6 +117,16 @@ опишите вариант использования. </listitem> +<listitem> +Проверка изменений при помощи специального набора тестов позволит убедиться, +что они не вызывают регрессию. +<link url="http://hg.nginx.org/nginx-tests">Репозиторий</link> с тестами +можно клонировать следующей командой: +<programlisting> +hg clone http://hg.nginx.org/nginx-tests +</programlisting> +</listitem> + </list> </para> _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel