Re: [Twisted-Python] Testing Twisted code without trial

2013-03-26 Thread Adi Roiban
On 26 March 2013 13:40, Itamar Turner-Trauring wrote: > On 03/26/2013 06:39 AM, Adi Roiban wrote: >> I am "spining" the reactor to "resolve" all deferreds involved in a >> StringTransport conversation or in an DeferredList or other kind of >> chained deferreds. These are what I call "integration t

Re: [Twisted-Python] Testing Twisted code without trial

2013-03-26 Thread Itamar Turner-Trauring
On 03/26/2013 06:39 AM, Adi Roiban wrote: > I am "spining" the reactor to "resolve" all deferreds involved in a > StringTransport conversation or in an DeferredList or other kind of > chained deferreds. These are what I call "integration tests" and they > only use memory, no external I/O. If you're

Re: [Twisted-Python] Testing Twisted code without trial

2013-03-26 Thread Adi Roiban
On 25 March 2013 15:48, wrote: > On 18 Mar, 07:32 pm, a...@roiban.ro wrote: >>On 22 January 2013 22:03, wrote: >>>On 09:29 am, a...@roiban.ro wrote: On 22 January 2013 02:21, wrote: >On 20 Jan, 02:35 pm, a...@roiban.ro wrote: >> >>I agree that this is a ugly hack and I removed the pro

Re: [Twisted-Python] Testing Twisted code without trial

2013-03-25 Thread Glyph
On Mar 25, 2013, at 6:48 AM, exar...@twistedmatrix.com wrote: > * with returning a `Deferred` from a test method (which works even if > you don't use trial to run your tests - but not if you don't subclass > trial's `TestCase`). We eventually moved on from this idea, though many > parts of T

Re: [Twisted-Python] Testing Twisted code without trial

2013-03-25 Thread exarkun
On 18 Mar, 07:32 pm, a...@roiban.ro wrote: >On 22 January 2013 22:03, wrote: >>On 09:29 am, a...@roiban.ro wrote: >>>On 22 January 2013 02:21, wrote: On 20 Jan, 02:35 pm, a...@roiban.ro wrote: > >I agree that this is a ugly hack and I removed the project. >> >>Hi Adi, >> >>trial does what i

Re: [Twisted-Python] Testing Twisted code without trial

2013-03-18 Thread Adi Roiban
On 22 January 2013 22:03, wrote: > On 09:29 am, a...@roiban.ro wrote: >>On 22 January 2013 02:21, wrote: >>>On 20 Jan, 02:35 pm, a...@roiban.ro wrote: I agree that this is a ugly hack and I removed the project. > > Hi Adi, > > trial does what it does by touching a lot of internal stuff as wel

Re: [Twisted-Python] Testing Twisted code without trial

2013-01-22 Thread exarkun
On 09:29 am, a...@roiban.ro wrote: >On 22 January 2013 02:21, wrote: >>On 20 Jan, 02:35 pm, a...@roiban.ro wrote: >>>Hi, >>> >>>I start my pet project using Python Nose as test runner. At the >>>start, >>>Twisted not used at all. >>>Later I discovered Twisted and start using it... but testing Tw

Re: [Twisted-Python] Testing Twisted code without trial

2013-01-22 Thread Adi Roiban
On 22 January 2013 02:21, wrote: > On 20 Jan, 02:35 pm, a...@roiban.ro wrote: >>Hi, >> >>I start my pet project using Python Nose as test runner. At the start, >>Twisted not used at all. >>Later I discovered Twisted and start using it... but testing Twisted >>requires trial. >> >>I resist migrati

Re: [Twisted-Python] Testing Twisted code without trial

2013-01-21 Thread exarkun
On 20 Jan, 02:35 pm, a...@roiban.ro wrote: >Hi, > >I start my pet project using Python Nose as test runner. At the start, >Twisted not used at all. >Later I discovered Twisted and start using it... but testing Twisted >requires trial. > >I resist migrating to Trial and ended up with a custom code f

Re: [Twisted-Python] Testing Twisted code without trial

2013-01-20 Thread Itamar Turner-Trauring
On 01/20/2013 09:35 AM, Adi Roiban wrote: > Hi, > > I start my pet project using Python Nose as test runner. At the start, > Twisted not used at all. > Later I discovered Twisted and start using it... but testing Twisted > requires trial. > Testing Twisted doesn't actually require trial; if you are

[Twisted-Python] Testing Twisted code without trial

2013-01-20 Thread Adi Roiban
Hi, I start my pet project using Python Nose as test runner. At the start, Twisted not used at all. Later I discovered Twisted and start using it... but testing Twisted requires trial. I resist migrating to Trial and ended up with a custom code for running Twisted tests together with Nose: https