Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Тесты
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alexander Pugachev  
View profile   Translate to Translated (View Original)
 More options Jun 30 2008, 5:00 am
From: "Alexander Pugachev" <alexander.pugac...@gmail.com>
Date: Mon, 30 Jun 2008 12:00:29 +0300
Local: Mon, Jun 30 2008 5:00 am
Subject: Тесты
Привет.
Кто как тесты организует?
Если их немного, то tests.py - замечательно.
А если становится больше, то хочется как-то организовать их по отдельным файлам.
Кто-то занимался вопросом?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
esizikov@gmail.com  
View profile   Translate to Translated (View Original)
 More options Jun 30 2008, 6:22 am
From: "esizi...@gmail.com" <esizi...@gmail.com>
Date: Mon, 30 Jun 2008 03:22:31 -0700 (PDT)
Local: Mon, Jun 30 2008 6:22 am
Subject: Re: Тесты
Я делаю каталог app/tests, в котором кладу адапитрованный testall.py,
который автоматом подхватывает тесты из всех файлов по маске test_*.py
в текущем каталоге.

Пример по ссылке ниже:

https://223-223.ru/repos/bis/branches/esizikov/test_performance_djang...

P.S. это вроде работает только в Django из svn, в 0.96.х другое
соглашение по тестам (не использующее стандартного def suite() из
unittests).

On 30 июн, 16:00, "Alexander Pugachev" <alexander.pugac...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexander Pugachev  
View profile   Translate to Translated (View Original)
 More options Jul 14 2008, 4:33 am
From: "Alexander Pugachev" <alexander.pugac...@gmail.com>
Date: Mon, 14 Jul 2008 11:33:40 +0300
Local: Mon, Jul 14 2008 4:33 am
Subject: Re: Тесты
Вот что у меня вышло для организации тестов:
http://peroksid-on-django.blogspot.com/2008/07/testspy.html .

30 июня 2008 г. 13:22 пользователь esizi...@gmail.com
<esizi...@gmail.com> написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
esizikov@gmail.com  
View profile   Translate to Translated (View Original)
 More options Jul 28 2008, 1:24 pm
From: "esizi...@gmail.com" <esizi...@gmail.com>
Date: Mon, 28 Jul 2008 10:24:25 -0700 (PDT)
Local: Mon, Jul 28 2008 1:24 pm
Subject: Re: Тесты
Александр,

посмотрел ваш пост... Желание запускать отдельный тест понимаю, хотя
сам пользую тесты "кучей" для поиска регрессий и акцептанса, но,
наверное, при разработке запустить именно один тест (тест-группу в
данном случае, вообще-то) имеет смысл, особенно если их много.

Однако, в этом случае ИМХО удобнее запатчить management-команду test у
самой Django, или патченный файлик засунуть к себе в проект и
переназначить на него переменную TEST_RUNNER в settings.py, например:

# The name of the method to use to invoke the test suite
# (we have put the patched django/test/simple.py as test.py in the
root of the project)
TEST_RUNNER = 'initial_concept.test.run_tests'

Вообще, патчик получился настолько тривиальный, что я открыл тикет на
code.djangoproject.com на эту тему, там его (патчик) и можно взять:
http://code.djangoproject.com/ticket/8010

On 14 июл, 15:33, "Alexander Pugachev" <alexander.pugac...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »