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
Skipping tests that are bound to fail?
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
  7 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
 
Michael Radziej  
View profile  
 More options Jul 6 2007, 11:24 am
From: Michael Radziej <m...@noris.de>
Date: Fri, 6 Jul 2007 17:24:55 +0200
Local: Fri, Jul 6 2007 11:24 am
Subject: Skipping tests that are bound to fail?
Hi,

I think it's a bit confusing that even with correct settings some tests
always fail for some backends. If I happen to compile any other software
package and the test suite fails, I usually suspect something went wrong. In
addition, failing tests make it hard to verify that everything is alright
with the package if you do any automated tests, e.g. before deploying a new
version.

So--what do you think about skipping tests that *must* fail?

Michael

--
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100
http://www.noris.de - The IT-Outsourcing Company

Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk -
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689


 
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 6 2007, 12:01 pm
From: "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
Date: Fri, 6 Jul 2007 11:01:53 -0500
Local: Fri, Jul 6 2007 12:01 pm
Subject: Re: Skipping tests that are bound to fail?
On 7/6/07, Michael Radziej <m...@noris.de> wrote:

> So--what do you think about skipping tests that *must* fail?

AFAIK, there aren't any tests that are "supposed" to be failing; just
a few backend-dependent bugs that need to be tracked down.

As a general principle, though, skipping tests that must fail is a
good idea; I'm not sure, though, if our test suite supports that.

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.
Michael Radziej  
View profile  
 More options Jul 6 2007, 12:16 pm
From: Michael Radziej <m...@noris.de>
Date: Fri, 6 Jul 2007 18:16:03 +0200
Local: Fri, Jul 6 2007 12:16 pm
Subject: Re: Skipping tests that are bound to fail?

On Fri, Jul 06, Jacob Kaplan-Moss wrote:

> On 7/6/07, Michael Radziej <m...@noris.de> wrote:
> > So--what do you think about skipping tests that *must* fail?

> AFAIK, there aren't any tests that are "supposed" to be failing; just
> a few backend-dependent bugs that need to be tracked down.

The serializer tests don't work for mysql/mysql_old with a transaction enabled
mysql storage engine since mysql doesn't test foreign key constraints at commit
time but at row insertion time. There's nothing that could fix this ...

> As a general principle, though, skipping tests that must fail is a
> good idea; I'm not sure, though, if our test suite supports that.

I have patches that simply skip tests via 'if'. I guess you'd prefer
something such that you get a report line "xxx tests skipped since they
don't work for %(reason)s"?

Michael

--
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100
http://www.noris.de - The IT-Outsourcing Company

Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk -
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689


 
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 6 2007, 12:46 pm
From: "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
Date: Fri, 6 Jul 2007 11:46:58 -0500
Local: Fri, Jul 6 2007 12:46 pm
Subject: Re: Skipping tests that are bound to fail?
On 7/6/07, Michael Radziej <m...@noris.de> wrote:

> The serializer tests don't work for mysql/mysql_old with a transaction enabled
> mysql storage engine since mysql doesn't test foreign key constraints at commit
> time but at row insertion time. There's nothing that could fix this ...

Duh - I knew that. Sorry.

> I have patches that simply skip tests via 'if'. I guess you'd prefer
> something such that you get a report line "xxx tests skipped since they
> don't work for %(reason)s"?

Yeah, that would be much better -- see the Python test suite, for
example; it gives a report at the end like "200 tests passed; 14
skipped; 1 failure".

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.
Michael Radziej  
View profile   Translate to Translated (View Original)
 More options Jul 6 2007, 12:56 pm
From: Michael Radziej <m...@noris.de>
Date: Fri, 6 Jul 2007 18:56:26 +0200
Local: Fri, Jul 6 2007 12:56 pm
Subject: Re: Skipping tests that are bound to fail?

On Fri, Jul 06, Jacob Kaplan-Moss wrote:
> Yeah, that would be much better -- see the Python test suite, for
> example; it gives a report at the end like "200 tests passed; 14
> skipped; 1 failure".

http://code.djangoproject.com/ticket/4788

May I count your reply as "Approved"?

Michael

--
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100
http://www.noris.de - The IT-Outsourcing Company

Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk -
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689


 
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 6 2007, 1:31 pm
From: "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
Date: Fri, 6 Jul 2007 12:31:05 -0500
Local: Fri, Jul 6 2007 1:31 pm
Subject: Re: Skipping tests that are bound to fail?
On 7/6/07, Michael Radziej <m...@noris.de> wrote:

> http://code.djangoproject.com/ticket/4788

> May I count your reply as "Approved"?

Indeed; and thanks.

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.
Malcolm Tredinnick  
View profile  
 More options Jul 6 2007, 10:26 pm
From: Malcolm Tredinnick <malc...@pointy-stick.com>
Date: Sat, 07 Jul 2007 12:26:04 +1000
Local: Fri, Jul 6 2007 10:26 pm
Subject: Re: Skipping tests that are bound to fail?

On Fri, 2007-07-06 at 17:24 +0200, Michael Radziej wrote:
> Hi,

> I think it's a bit confusing that even with correct settings some tests
> always fail for some backends. If I happen to compile any other software
> package and the test suite fails, I usually suspect something went wrong. In
> addition, failing tests make it hard to verify that everything is alright
> with the package if you do any automated tests, e.g. before deploying a new
> version.

> So--what do you think about skipping tests that *must* fail?

We do that in quite a few places if you rummage through the test suite.
Grep for settings.DATABASE, etc. The remaining places are just waiting
for somebody to submit a clean patch, so go for it. It's not completely
trivial for the MySQL transaction case, because you'll need to check the
database options setting as well to ensure they aren't using InnoDB
(which I think Andy mentioned at one point was respected by the tests,
but I haven't checked that recently)

Regards,
Malcolm

--
Depression is merely anger without enthusiasm.
http://www.pointy-stick.com/blog/


 
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 »