Re: test discovery

2013-05-18 Thread Chris Wilson
Hi Carl, On Sat, 18 May 2013, Carl Meyer wrote: I don't think this should be fixed in the test runner itself; in general, file-path test labels _should_ be interpreted as relative to wherever you are running the tests from. But it should be fixed in the

Re: test discovery

2013-05-18 Thread Carl Meyer
Hi Chris, On May 18, 2013, at 8:34 AM, Chris Wilson wrote: > On Sat, 18 May 2013, Chris Wilson wrote: > >> I think Travis is unhappy about something in this commit. Any ideas? >> >> == >> ERROR:

Re: test discovery

2013-05-18 Thread Carl Meyer
Hi Chris, On May 18, 2013, at 9:42 AM, Chris Wilson wrote: > Another odd behaviour of the new test runner. This runs the tests, but fails > to add the test app to INSTALLED_APPS, so they all fail because their tables > are not created: > >PYTHONPATH=.. python -Wall

Re: test discovery

2013-05-18 Thread Chris Wilson
Hi all, On Fri, 10 May 2013, Carl Meyer wrote: I merged this patch tonight. Thanks to everyone who contributed! Now let's see how the CI servers feel about it... I think Travis is unhappy about something in this commit. Any ideas?

Re: test discovery

2013-05-13 Thread Daniel Lindsley
"Django and Testing" talk at >>> PyCon 2012; it all comes full circle :-) >>> >>> > I agree with Jacob's tests aren't production sensitive, so making a >>> fast >>> > transition to the new test discovery has less impact. >>> > >

Re: test discovery

2013-05-11 Thread Florian Apolloner
On Saturday, May 11, 2013 2:38:23 PM UTC+2, Carl Meyer wrote: > > No good reason, just an oversight I think. If that's all that's needed to > make the CI happy, feel free to change it, should be a simple fix. > Perfect, pushed a fix, let's see what jenkins says. -- You received this message

Re: test discovery

2013-05-11 Thread Carl Meyer
Hi Florian, On May 11, 2013, at 7:51 AM, Florian Apolloner wrote: > Hi Carl, > > before I read all the tickets etc; why does runtests.py not use the > TEST_RUNNER from settings.py (see >

Re: test discovery

2013-05-11 Thread Florian Apolloner
Hi Carl, before I read all the tickets etc; why does runtests.py not use the TEST_RUNNER from settings.py (see https://github.com/django/django/commit/9012833af857e081b515ce760685b157638efcef#L60L149)? We'd need that for jenkins to produce xml files as output. Thanks, Florian -- You

Re: test discovery

2013-05-11 Thread Florian Apolloner
> > Carl > > On Wednesday, May 8, 2013 5:00:56 PM UTC-4, Carl Meyer wrote: >> >> Preston Timmons and I have been working the last several weeks to get >> the test discovery branch (#17365) ready for merge, and I think we now >> have a pull request ready for consideration:

Re: test discovery

2013-05-10 Thread Yo-Yo Ma
Wow, this is awesome! Thanks so much guys. Too long have I dreamt of the day when I could include tests for my "lib" and "util", etc. without having to couple them to one app or another. I'm so excited that this was added so quickly. Thanks Yo-yo -- You received this message because you

Re: test discovery

2013-05-10 Thread Carl Meyer
I merged this patch tonight. Thanks to everyone who contributed! Now let's see how the CI servers feel about it... Carl On Wednesday, May 8, 2013 5:00:56 PM UTC-4, Carl Meyer wrote: > > Preston Timmons and I have been working the last several weeks to get > the test discovery branc

Re: test discovery

2013-05-10 Thread Carl Meyer
sed on code I showed on a slide in my "Django and Testing" talk at >> PyCon 2012; it all comes full circle :-) >> >> > I agree with Jacob's tests aren't production sensitive, so making a fast >> > transition to the new test discovery has less impact. >&

Re: test discovery

2013-05-09 Thread Russell Keith-Magee
) > > > I agree with Jacob's tests aren't production sensitive, so making a fast > > transition to the new test discovery has less impact. > > > > However, we know from experience that it doesn't matter how much we flag > > this change in the release notes, they won't

Re: test discovery

2013-05-09 Thread Carl Meyer
On 05/09/2013 07:50 AM, Andrew Godwin wrote: > Just want to say that I'm happy with a "fast transition". > > Is there a possibility we can detect the case where the tests might be > broken (how might they be?) and print a helpful error message? Two kinds of potential breakage: - The most common

Re: test discovery

2013-05-09 Thread Carl Meyer
based on Jannis' django-discover-runner, which was based on code I showed on a slide in my "Django and Testing" talk at PyCon 2012; it all comes full circle :-) > I agree with Jacob's tests aren't production sensitive, so making a fast > transition to the new test discovery has les

Re: test discovery

2013-05-09 Thread Carl Meyer
Hi Tom, On 05/09/2013 03:27 AM, Tom Christie wrote: > * Will it be possible to globally configure the default file/path pattern? > Jannis's django-discover-runner includes support for a > `TEST_DISCOVER_PATTERN` - is there anything similar, or just the command > line `--patterns` option? The

Re: test discovery

2013-05-09 Thread Andrew Godwin
ee.com> wrote: > > On Thu, May 9, 2013 at 5:00 AM, Carl Meyer <c...@oddbird.net> wrote: > >> Hi all, >> >> Preston Timmons and I have been working the last several weeks to get >> the test discovery branch (#17365) ready for merge, and I think we now >> have

Re: test discovery

2013-05-09 Thread Russell Keith-Magee
On Thu, May 9, 2013 at 5:00 AM, Carl Meyer <c...@oddbird.net> wrote: > Hi all, > > Preston Timmons and I have been working the last several weeks to get > the test discovery branch (#17365) ready for merge, and I think we now > have a pull request ready for consideration:

Re: test discovery

2013-05-09 Thread Tom Christie
Hi Carl, Excellent, excellent stuff - many thanks to both yourself and Preston. Couple of questions: * Will it be possible to globally configure the default file/path pattern? Jannis's django-discover-runner includes support for a `TEST_DISCOVER_PATTERN` - is there anything similar, or

Re: test discovery

2013-05-08 Thread Carl Meyer
Hi Anssi, On 05/08/2013 03:31 PM, Anssi Kääriäinen wrote: > It would be really nice to be able to use same syntax for running a > single Django's testcase at least for a while. I expect that there > will be problems if inspecting how a given test case behaves in older > versions compared to HEAD.

Re: test discovery

2013-05-08 Thread Jacob Kaplan-Moss
On Wed, May 8, 2013 at 2:00 PM, Carl Meyer wrote: > Jacob has suggested that back-compat breaks in test-running are not as > serious as in production code, and that we should just switch to the new > test runner by default in Django 1.6. I still think this. I don't see the need

Re: test discovery

2013-05-08 Thread Anssi Kääriäinen
t;c...@oddbird.net> wrote: > Hi all, > > Preston Timmons and I have been working the last several weeks to get > the test discovery branch (#17365) ready for merge, and I think we now > have a pull request ready for > consideration:https://github.com/django/django/pull/1050 > >

Re: test discovery

2013-05-08 Thread Aymeric Augustin
On 8 mai 2013, at 23:00, Carl Meyer wrote: > Jacob has suggested that back-compat breaks in test-running are not as > serious as in production code, and that we should just switch to the new > test runner by default in Django 1.6. This is what the pull request > currently does.

Re: test discovery

2013-05-08 Thread Donald Stufft
On May 8, 2013, at 5:00 PM, Carl Meyer wrote: > Jacob has suggested that back-compat breaks in test-running are not as > serious as in production code, and that we should just switch to the new > test runner by default in Django 1.6. This is what the pull request > currently