<  February 2010   >
Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28
01:19 paulca joined
01:30 paulca joined
01:33 giorgian joined
01:39 <giorgian> hi. I'm trying cucumber for the first time on an exitisting rails app; when I do rake cucumber:all it tries to invoke "rake db:schema:load", which, in my case, fails (I'm using some mysql specific stuff which doesn't get translated correctly in schema.rb). How do I tell cucumber to do db:migrate, instead?
01:40 ariejan joined
01:41 <ariejan> Hey. With tablish, how can I leave out an entire column before diffing it?
01:46 pdelgallego joined
01:48 agenteo joined
01:57 FabianB_ joined
02:17 jmstr|HiO joined
02:19 Andrei joined
02:20 ashley_moran joined
02:32 chalkers joined
02:32 chalkers left
02:38 imajes joined
02:41 mattwynne joined
02:43 benlovell joined
02:46 paulca joined
03:05 fearoffish joined
03:10 jhenderson joined
03:20 jschoolcraft joined
03:42 benlovell joined
04:23 senny joined
04:49 benlovell joined
04:56 lmarburger joined
05:12 rolfb joined
05:27 <ashley_moran> Hi all, been working on getting features into cucumber-rails in prep for working on rails 3 compatability
05:27 <ashley_moran> http://github.com/ashleymoran/cucumber-rails/commit/661872d7ab71c6bfdf6c5e3ffe59219348688fc0
05:28 <ashley_moran> very little there but it's a start, hopefully get decent coverage this avvy
06:25 svenfuchs joined
06:49 mrkurt joined
07:09 ekidd joined
07:20 mjw2 joined
07:26 <mattwynne> nice one ashley_moran
07:27 <ashley_moran> hi mattwynne - slow going as i had to get a harness in place first, but i've had a coffee now :)
07:27 <ashley_moran> i'm getting strange behaviour from the generator though... doesn't appear to be running erb on cucumber.yml?
07:28 <ashley_moran> that's the latest gem in a rails 2.3.5 app
07:29 <ashley_moran> mattwynne: no it's not, ignore me
07:29 <mattwynne> :)
07:53 <ashley_moran> anyone know what "rerun.txt" is in the context of a generatorL
07:53 <ashley_moran> ?
07:56 <ashley_moran> is cucumber.yml supposed to be an erb file these days? that threw me
07:57 <ashley_moran> or is the generated cucumber.yml actually a yaml file? i've never seen one with embedded ruby like that
08:11 kevwil joined
08:25 botanicus joined
08:30 <kevwil> what's the best way to use Cucumber with REST-only APIs?
08:31 <kevwil> I'm trying to hack something together with rest-client and custom steps, but it's funky.
08:33 oddmunds joined
08:33 agib joined
08:43 ghnatiuk joined
08:46 <mrkurt> kevwil: I haven't done it much, but we just treat them like normal web pages
08:46 <mrkurt> and have helper forms we can submit to them
08:48 <kevwil> mrkurt: if you didn't have helper forms, could you work with all the http verbs, or is that the only way to POST / PUT / DELETE?
08:48 <mrkurt> I think you can write custom steps to handle that pretty easily
08:49 camonz joined
08:49 <kevwil> mrkurt: that's what I'm trying to do now
08:50 <kevwil> it seems webrat is very popular, but that seems very HTML specific
08:50 <mrkurt> it seems like a rest api might be a better candidate for regular functional tests, tbh
08:50 <kevwil> looking for a better shortcut to REST testing
08:51 <kevwil> mrkurt: why?
08:51 <mrkurt> because it's an API and not a user facing thing
08:51 <mrkurt> you're not writing stories as a "user"
08:51 <kevwil> the draw of cucumber is the language, the use case dialog that all parties can understand, but when the product is a REST api ....
08:51 <mrkurt> I don't think all parties necessarily understand the use case of a REST api
08:52 <mrkurt> a sample client app that uses the rest api? s ure
08:52 <kevwil> here they do
08:52 <kevwil> that's what we do
08:52 <mrkurt> then test that client app :p
08:52 <mrkurt> with cucumber!
08:52 <kevwil> no, no client apps, the API is the product
08:53 <mrkurt> right, what I'm saying is, cucumber would be an obvious fit to run against a sample app that uses your rest api
08:53 <mrkurt> but low level testing of the api itself isn't what I'd use integration testing for
08:53 <kevwil> sure, obviously
08:53 <mrkurt> I'd use rspec
08:54 <mrkurt> or similar
08:54 <kevwil> if I didn't want to communicate with the business people, I'd do the same thing
08:54 <mrkurt> I understand that not everyone would be able to read those tests quite as easily, but I can't fathom how cucumber features are going to be written that make that a whole ton better
08:54 <kevwil> the draw is the common language
08:54 <mrkurt> do you have a sample feature?
08:55 <mrkurt> who's perspective is it written from?
08:55 <kevwil> I'd have to sanitize one
08:55 <kevwil> written from the perspective of the API user
08:56 <kevwil> could be an internal customer, a client, or a client's client
08:56 <mrkurt> well, you don't really need to convince me either way if it works for you
08:57 <mrkurt> but I think you're stuck with a whole ton of custom steps to map whatever client lib you want to use to features
08:57 <kevwil> I guess my expectation that advanced Ruby testing frameworks would be up to the current market of customer-facing API products is a bit ahead of its time
08:57 <mrkurt> if you're returning html, webrat will work ok
08:57 <mrkurt> well, your customer's going to use an API as an API
08:57 <mrkurt> which matches, say, rspec much better than it matches cucumber
08:58 <kevwil> yeah, we're considering returning html for the QA department, but I'm trying to get cucumber to bridge all those gaps with common language
08:59 <kevwil> mrkurt: time for our morning stand-up meeting, thanks for thinking this through with me
09:14 lectrick joined
09:16 mabes joined
09:21 paulca joined
09:23 ekidd joined
09:28 agile joined
10:01 altogether joined
10:10 balint joined
10:26 <ashley_moran> i'm back... some more progress on the rails 3 cucumber-rails generator
10:26 <ashley_moran> http://github.com/ashleymoran/cucumber-rails/commit/67834e8b0e2b24590ace9f2c3d4c3673de5343b5
10:27 <ashley_moran> now have a feature file makes a walking skeleton of the skeleton generator and builds a few apps
10:29 <ashley_moran> off out now to the sheffield rug now
10:57 ghnatiuk left
11:21 raidfive joined
11:30 linoj joined
11:48 jasherai joined
12:00 superpuppy joined
12:04 chriseppstein joined
12:16 bcardarella joined
12:50 paulca joined
12:51 werdnativ joined
12:53 josephwilk joined
12:56 eadz joined
12:57 <eadz> I'm looking at the instructions for using fixtures with rails, http://wiki.github.com/aslakhellesoy/cucumber/fixtures however, it seems some of the code is already in env.rb. Is that page out of date?
12:57 anathematic joined
13:27 bcardarella joined
13:27 pdelgallego joined
13:28 kunalksm joined
13:28 ghnatiuk joined
13:41 ghnatiuk left
13:52 <kunalksm> hi,
13:54 <kunalksm> I am integrating selenium with webrat in my cucumber stories. I have to perform one step in selenium and rest steps in the scenario does not require client side testing. Is it possible to switch between webrat and selenium in a scenario ?
13:54 <kunalksm> I understand this is more of webrat question .. but i thought somebody might know about this in this group
14:13 bcardarella joined
14:14 altogether joined
14:20 hakunin joined
14:23 dastels joined
14:24 has_rb joined
14:26 <phinze> kunalksm: not really, as they're totally different strategies for testing a webapp
14:26 <phinze> but you should really be using webrat's selenium integration
14:27 <phinze> so you really are using webrat the whole time
14:27 <phinze> which then in the background talks to selenium,
14:27 <phinze> http://wiki.github.com/brynary/webrat/selenium
14:30 <kunalksm> phinze: Thanks… I am actually trying to do that.. but I was hoping to squeeze more speed by limiting steps to selenium only when they cannot be preformed by webrat
14:32 <phinze> the way we accomplish that is to divide our suite into two
14:32 <phinze> features that require selenium, features that require nokogiri(break in selenium) and features that work in both
14:32 <phinze> (so three i guess ;) )
14:33 <phinze> i based that structure off an article i think, let me see if i can't find it
14:40 jeanmartin joined
14:43 beilabs joined
14:46 hakunin joined
14:51 <phinze> http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium <-- 'Cucumber/Selenium/Webrat' header
14:51 <phinze> did that more or less
14:51 <phinze> that way most of tests can be run with webrat
14:51 <phinze> and selenium necessary tests can stay w/ selenium
14:52 <phinze> kunalksm: ^^
15:00 camonz joined
15:12 linoj joined
15:16 benlovell joined
15:17 wr| joined
15:22 agenteo joined
15:36 svenfuchs joined
15:47 paulca joined
15:52 botanicus joined
16:03 linoj joined
16:17 linoj joined
16:26 paulca joined
16:31 kunalksm joined
16:31 has_rb joined
16:32 mnoble joined
16:39 has_rb_ joined
16:49 BBHoss joined
16:49 <BBHoss> whats the status with Rails 3 and Cucumber, what needs to be fixed?
16:55 BBHoss left
16:56 odigity joined
16:57 <odigity> rails noob with a cucumber install question
16:57 <odigity> I installed the gem, but it didn't add any rake tasks
16:57 <odigity> yet the screencasts I've seen start by running 'rake cucumber' to generate the features/ subdir and other starting files
16:58 <odigity> ah, sorry, I don't mean rake, I mean script/generate
16:58 <odigity> the screencasts start with "script/generate cucumber", but installing the cucumber gem didn't add any generators
17:05 jeanmartin joined
17:06 <odigity> did my last five messages go through? just noticed I wasn't registered with the nickserv
17:06 raidfive joined
17:17 lukemelia joined
17:43 odigity joined
17:53 mjw2 joined
17:53 eadz joined
17:53 eadz joined
17:54 odigity joined
17:58 Adkron joined
18:04 odigity joined
18:11 mjw2 joined
18:13 odigity joined
18:24 imajes joined
18:28 odigity joined
18:46 odigity joined
18:58 odigity joined
19:14 odigity joined
19:23 odigity joined
19:37 odigity joined
19:45 odigity joined
19:49 botanicus joined
19:53 odigity joined
19:55 agib joined
19:59 mabes joined
20:05 odigity joined
20:21 donaldball joined
20:24 <donaldball> Hey, is anyone using any nifty tools to help the stakeholders visualize and browse the coverage of their cucumber scenarios?
20:26 odigity joined
20:30 agile joined
20:32 altogether joined
20:37 odigity joined
20:38 aslakhellesoy joined
20:50 odigity joined
20:50 mabes joined
20:50 aslakhellesoy joined
21:09 odigity joined
21:10 donaldball joined
21:19 odigity joined
21:27 has_rb joined
21:33 odigity joined
21:38 anathematic joined
21:46 odigity joined
21:55 odigity joined
22:14 odigity joined
22:16 donaldball joined
22:24 odigity joined
22:26 donaldball joined
22:31 lupine_86 joined
22:44 odigity joined
22:54 odigity joined
22:59 chriseppstein joined
23:04 odigity joined
23:14 odigity joined
23:18 tanvir joined
23:18 <tanvir> hi all
23:18 <tanvir> i am in a problem
23:18 <tanvir> anybody there to help?
23:22 <tanvir> hello
23:22 <tanvir> anyone?
23:22 odigity joined
23:23 <tanvir> i need help :(
23:31 odigity joined
23:41 odigity joined
23:45 hakunin joined
23:58 odigity joined