Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
#4460 - Running individual tests in a test suite
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
  6 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
 
Russell Keith-Magee  
View profile  
 More options Jul 24 2007, 10:21 am
From: "Russell Keith-Magee" <freakboy3...@gmail.com>
Date: Tue, 24 Jul 2007 22:21:58 +0800
Local: Tues, Jul 24 2007 10:21 am
Subject: #4460 - Running individual tests in a test suite
Hi all,

I've just uploaded a patch to #4460 which adds the ability to start
individual tests or test cases from a test suite. Using this patch,
./manage.py test and ./runtests.py gain the ability to do the
following:

# run all tests in the project
./manage.py test

# run all tests in myapp
./manage.py test myapp

# run all the tests in the Foo TestCase contained in myapp
./manage.oy test myapp.Foo

# run the test_bar test in the Foo TestCase
./manage.py test myapp.Foo.test_bar

Other than adding the ability to invoke individual tests, this will
has no effect on most end users.

However, it does require a significant change to the prototype of
run_test, which will be backwards incompatible for anyone with a
customized test runner. Previously, run_tests accepted a list of
application modules; run_tests now takes a list of test labels, and it
is the responsibility of the test runner to load the appropriate apps.
Anyone with a customized test runner will need to incorporate module
loading code as part of their test runner.

This change won't affect most users, and it isn't difficult to make
the change for those users that will be affected (sample logic for an
implementation exists in the Django default test runner).

Are there any objections to making this change?

Yours,
Russ Magee %-)


 
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.
Ivan Sagalaev  
View profile  
 More options Jul 24 2007, 11:00 am
From: Ivan Sagalaev <Man...@SoftwareManiacs.Org>
Date: Tue, 24 Jul 2007 19:00:53 +0400
Local: Tues, Jul 24 2007 11:00 am
Subject: Re: #4460 - Running individual tests in a test suite

Russell Keith-Magee wrote:
> Hi all,

> I've just uploaded a patch to #4460 which adds the ability to start
> individual tests or test cases from a test suite.

Wow, this is handy! Looking forward for commit!

 
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.
Jacob Kaplan-Moss  
View profile  
 More options Jul 24 2007, 1:49 pm
From: "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
Date: Tue, 24 Jul 2007 10:49:07 -0700
Local: Tues, Jul 24 2007 1:49 pm
Subject: Re: #4460 - Running individual tests in a test suite
On 7/24/07, Russell Keith-Magee <freakboy3...@gmail.com> wrote:

> I've just uploaded a patch to #4460 which adds the ability to start
> individual tests or test cases from a test suite.

Woo!

> Are there any objections to making this change?

None whatsoever -- I can't wait to use this.

Jacob


 
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.
Chris Heisel  
View profile  
 More options Jul 24 2007, 8:18 pm
From: "Chris Heisel" <ch...@heisel.org>
Date: Tue, 24 Jul 2007 20:18:20 -0400
Local: Tues, Jul 24 2007 8:18 pm
Subject: Re: #4460 - Running individual tests in a test suite
Can't wait to see it!

On 7/24/07, Jacob Kaplan-Moss <jacob.kaplanm...@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.
Adrian Holovaty  
View profile  
 More options Jul 27 2007, 11:46 pm
From: "Adrian Holovaty" <holov...@gmail.com>
Date: Fri, 27 Jul 2007 22:46:34 -0500
Local: Fri, Jul 27 2007 11:46 pm
Subject: Re: #4460 - Running individual tests in a test suite
On 7/24/07, Russell Keith-Magee <freakboy3...@gmail.com> wrote:

> Are there any objections to making this change?

Go for it!

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.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.
Russell Keith-Magee  
View profile  
 More options Jul 28 2007, 12:11 am
From: "Russell Keith-Magee" <freakboy3...@gmail.com>
Date: Sat, 28 Jul 2007 12:11:56 +0800
Local: Sat, Jul 28 2007 12:11 am
Subject: Re: #4460 - Running individual tests in a test suite
On 7/28/07, Adrian Holovaty <holov...@gmail.com> wrote:

> On 7/24/07, Russell Keith-Magee <freakboy3...@gmail.com> wrote:
> > Are there any objections to making this change?

> Go for it!

Cheers. Committed as #5769.

Russ %-)


 
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 »