Re: [rspec-users] New Zentest, any feedback?

2009-06-03 Thread Kero van Gelder
> So I notice that Ryan released a new zentest gem today. It looks like > it has been refactored a bit. > > Are there any brave guinea pigs/canaries in the RSpec/Cucumber > community who have tried it out? Any issues? I do see that someone > has been reporting some problems with multiruby which i

Re: [rspec-users] autotest?

2009-05-21 Thread Kero van Gelder
> >> > Is there some configuration I need to do to get rid of unit/functional > >> > tests and only run rspec+cucumber? > > > > [...] > >> I guess I should add this in some form to the rspec wiki ;) > > > > Done: > >   http://wiki.github.com/dchelimsky/rspec/autotest-integration > > Thanks Kero. I

Re: [rspec-users] autotest?

2009-05-21 Thread Kero van Gelder
> > Is there some configuration I need to do to get rid of unit/functional > > tests and only run rspec+cucumber? [...] > I guess I should add this in some form to the rspec wiki ;) Done: http://wiki.github.com/dchelimsky/rspec/autotest-integration Bye, Kero. ___ How can I change the world

Re: [rspec-users] autotest?

2009-05-21 Thread Kero van Gelder
> Is there some configuration I need to do to get rid of unit/functional > tests and only run rspec+cucumber? This eplains all there is to explain (though terse and not from your use case) http://zentest.rubyforge.org/ZenTest/Autotest.html and you now have to add code from that to your .auto

Re: [rspec-users] Including extra directories for Autospec

2009-05-18 Thread Kero van Gelder
> Then I edit the files like so: > > ./autotest: > Autotest.add_hook :initialize do |at| > at.add_mapping(%r%^spec/something/.*_spec\.rb$%) do > at.files_matching(%r%^spec/something/.*_spec\.rb$%) > end > end Do you perhaps have a ~/.autotest with a hook to :initialize ? If so, let it ret

[rspec-users] request for gists / pasties

2009-05-10 Thread Kero van Gelder
> Questions: > [...] > * pls provide a full backtrace > * best in a gist or pastie Imagine someone looking at the problem report two years from now. No pastie. Then the solution (if provided) comes without a complete problem. Like code without a test. Put it in an attachment, or whatever, but

Re: [rspec-users] top posting and plain text

2009-05-07 Thread Kero van Gelder
>> So let me get this right, >> >> you agreed with Aslak that you shouldn't top post. >> >> by top posting >> > lol.. Yes. :) Sarcasm somethings doesn't come across well over email > I suppose. Not only that, he did it in so it was impossible for me to see whether it was top or bottom

Re: [rspec-users] [Cucumber] gem missing dependencies

2009-05-03 Thread Kero van Gelder
> Polyglot requires hoe because it's built using "newgem". It's a > nuisance, and I'll be happy to remove it, or make hoe a dev-time > dependency only if possible. I've contacted Dr Nic to ask how to > proceed. In my view, using hoe shouldn't add a runtime dependency. Hm, snippet from long `p spec

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Kero van Gelder
>>> So basically, I want to do something like this: >>> >>> examples = load_examples_without_running >>> examples.each {|example| puts example.description} [snip] > I'm working into a big corporate in Australia, and they are demanding > traceability of tests back to requirements. I'm already u

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-28 Thread Kero van Gelder
> I'd like to do this: > > Feature: user signup > Before: > Given I have a cleaned up database > Scenario Outline: Sign Up > Given I am on the signup page > When I sign up using > Then I should see >Examples: > |userid |message | > |userX |suc

Re: [rspec-users] [Cucumber] gem missing dependencies

2009-04-27 Thread Kero van Gelder
> This is the umpteenth time polyglot messes up. Polyglot is broken broken > broken. Cucumber doesn't use it, but can't escape it, because Treetop > *always* loads it. I have tried to lobby the Treetop developers to make it > optional. I have sent a patch (as a treetop fork). It's still in there. >

Re: [rspec-users] [Cucumber] gem missing dependencies

2009-04-27 Thread Kero van Gelder
Hi list & Clifford, > > Looks like installing hoe (which brings in rubyforge and rake) solved the > > problem below. > > I just fixed that: > http://github.com/aslakhellesoy/cucumber/commit/23cbc9b6c54ebe1ecf568610c2696762f22f0b06 Thanks Aslak, that was quick, but... I had to try that, and the

[rspec-users] [Cucumber] gem missing dependencies

2009-04-26 Thread Kero van Gelder
Hi! Looks like installing hoe (which brings in rubyforge and rake) solved the problem below. Who builds the gem / should I report this to / should I send a patch ? Bye, Kero. --- fresh install of debian lenny, upgraded to unstable. $ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

Re: [rspec-users] [Cucumber] Options in tables

2009-04-22 Thread Kero van Gelder
> sorry.. the first point.. you're right this feature is to do with tables > too, however this feature is orthogonal to the other one, so I decided to > start a new thread ... I hope that was right. Sure, just wanted to make sure you'd seen the other thread. (on a aside note: what would example

Re: [rspec-users] [Cucumber] Options in tables

2009-04-22 Thread Kero van Gelder
> In Cucumber I want to remove duplication from my examples tables. > see http://gist.github.com/99516 for an example of the type of situation I > am facing. > > I would like the second example to be equivalent to the first. > > To do this... I need cucumber to read a row in the examples and noti

Re: [rspec-users] [Cucumber] Tables

2009-04-22 Thread Kero van Gelder
> > Without adding a new feature to Cucumber, I'd probably do > > > > Scenario Outline: Religious menus > > Given the customer is a "" > > When they ask for the menu > > Then they should be presented with "" > > > > Examples: > > | Religion | Meats | > > | Christian | Pork,

Re: [rspec-users] Cucumber - step negating another expecting step

2009-04-18 Thread Kero van Gelder
> I've been doing something similar. I think the benefit of having half > the steps(each can be negated) wins over the small impact it has on step > readability. Personally I started adding stuff like this(perhaps not as > DRY but simple enough): > > Then /^the correspondence should (not )?have

Re: [rspec-users] Spec run heuristics (Re: Cucover: coverage-aware 'lazy' cucumber runs)

2009-04-13 Thread Kero van Gelder
> That would be very cool, you have lots of good ideas there. Being able > to plug in your own file-change strategy would be killer. Another cool > idea I ran across the other idea is being able to specify in your > examples that which ones are "focussed". Meaning, autotest will only > r

Re: [rspec-users] Reuse of Cucumber Features

2009-04-11 Thread Kero van Gelder
> >> Cucumber could dump in the table data it found from the file, and > >> print it out when running the scenarios, and it allows some sets of > >> sample data be re-used easily, in an understandable manner. If the file is used to unclutter the examples, does printing-when-running help? > > This

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-24 Thread Kero van Gelder
> > I find pushing last thing at night even more bizarre to be honest :/ > > If you're are going home, it seems reasonable that other people might > > be, ergo there won't be many more changes made (an assumption > > granted). Also, if they are going to continue to work and make > > changes, why fo

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-24 Thread Kero van Gelder
>> yeah, you guys are probably right on this. I was just over stating. :) > > Ah, but Waterfall is indeed like the Emissaries of the Shadow. If you > defeat one of them, in one form, another one will always appear, take > shape, and grow... > > I myself have heard well-meaning product managers sa

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-17 Thread Kero van Gelder
>> Because traffic is increasing That's a bad reason to split a list. >> Because cucumber really is a seperate mature topic now. > > Good point. Can any newbies to the scene comment if this is confusing? It is mature. But is it separate? >> Because rspec overlap is getting smaller (relatively)

Re: [rspec-users] Autospec does not work w/ cucumber features?

2008-12-12 Thread Kero van Gelder
$ AUTOFEATURE=true autospec # bug! prompt returns immediately, ZenTest gem not a dependency? a warning that autotest was not found would be nice. >>> Huh. The autospec command comes from RSpec; do you have this issue >>> without setting AUTOFEATURE=true? >> >> Yup. >> >>

Re: [rspec-users] Autospec does not work w/ cucumber features?

2008-12-06 Thread Kero van Gelder
> > $ AUTOFEATURE=true autospec # bug! prompt returns immediately, ZenTest > > gem not a dependency? a warning that autotest was not found would be nice. > > Huh. The autospec command comes from RSpec; do you have this issue > without setting AUTOFEATURE=true? Yup. But as I only have featu

[rspec-users] Autospec does not work w/ cucumber features?

2008-12-06 Thread Kero van Gelder
Hi! And now for the second part of the subject of my previous mails :) $ cat cucumber.yml default: . autotest: -v . autotest-all: -v -f progress . $ cucumber -i . -f progress PP Pending Scenarios: 1) enlightenment (meditation) $ AUTOFEATURE=true autospec # bug! prompt returns immediately,

Re: [rspec-users] Cucumber and autospec do not work ?

2008-12-06 Thread Kero van Gelder
> I have added th tickets for you and am working on fixes for them. > Although, I think the last one needs to be discussed more so please add > your thoughts to that ticket. > > http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/117-cli-crashes-with-blank-cucumberyml > http://rspec

[rspec-users] Cucumber and autospec do not work ?

2008-12-05 Thread Kero van Gelder
Hi! I'm not sure this is how cucumber should behave. Should I file one or three tickets at http://rspec.lighthouseapp.com/projects/16211-cucumber ? $ cucumber -v 0.1.12 $ mkdir fresh $ cd fresh $ cucumber cucumber.yml was not found. Please define your 'default' and other profiles in cucumber.

Re: [rspec-users] .html.erb files and autotest

2008-01-14 Thread Kero van Gelder
> The benefit of doing that is it spots files that you may not have > spec'd that you want spec'd. On the flip side you end up with a bunch > of noise but you can eliminate that w/ the :initialize hook: > > Autotest.add_hook :initialize do |at| > at.add_exception 'some_file_i_want_ignored' > end

Re: [rspec-users] How to trace running spec

2008-01-13 Thread Kero van Gelder
> > I have a spec that is hanging when it is running. > > > > How do I get the rspec runner to show what specs it's running so I can > > which one is hanging? I am calling the runner from my rails project. > > Which formatter ate you using? If you use the specdoc formatter it will > output the

Re: [rspec-users] Do you think it would look cleaner?

2008-01-01 Thread Kero van Gelder
> I was looking over some of my specs. > I was thinking that the following: > > @game.should_receive(:name).and_return('The Battle for Blaze') > @game.should_receive(:people).and_return(500) > @game.should_receive(:activated).and_return(true) > > Would it look cleaner if I could do this inste

Re: [rspec-users] executing code after each step of a story

2007-12-31 Thread Kero van Gelder
Hi! After a bit of digging in runners, I found that I need a formatter, really. now --format FORMAT:WHERE is explained properly by --help. --runner otoh, is not; see below. For the purpose of recording a user story (demo, webdemo), I run espeak for each step and then some. It seems to me, a forma