[rspec-users] Spec Server on Windows - missing fork
jim at saturnflyer.com
Wed Aug 6 00:28:54 EDT 2008
On Aug 6, 2008, at 12:04 AM, David Chelimsky wrote:
> On Sat, Aug 2, 2008 at 3:43 PM, Luis Lavena <luislavena at gmail.com>
>> On Sat, Aug 2, 2008 at 9:04 PM, Mark Wilden <mark.wilden at gmail.com>
>>> spec_server is one of the hidden gems of the RSpec world. It's not
>>> completely a slam-dunk to use, and I know people who don't use it
>>> because of
>>> various problems, but it's worth working through those problems,
>>> if you do T/BDD.
>> Yes, is a hidden gem but also have is own glitches.
>> One is the lack of possiblity to actually quit gracefully (they need
>> to trap INT and properly stop the DRb server.
> Patches welcome!
I couldn't resist.
>> Second and trickest one is reloading of the environment. Right now if
>> you change parts that are outside the reload mechanism of Rails,
>> spec_server will fail. Haven't had time to investigate into it,
>> The other one is related to ANSI escape, at least on Windows.
>> spec_server takes spec/spec.opts and enable ANSI colors if the option
>> is present, but that still confuses script/spec -X and generate
>>> I've set up a vim script that runs just the current spec, where
>>> "current" is
>>> defined as "the last spec the cursor was on" (even if you're
>>> editing the
>>> model or whatever). Wherever I am, I can just hit Ctrl-X and see
>>> the results
>>> of the test almost instantly. Beat that, TextMate!
>> I use autotest, I just save the file and it's executed, then I get
>> total test results without distraction, beat that ;-)
>> Luis Lavena
>> AREA 17
>> Human beings, who are almost unique in having the ability to learn
>> the experience of others, are also remarkable for their apparent
>> disinclination to do so.
>> Douglas Adams
>> rspec-users mailing list
>> rspec-users at rubyforge.org
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users