00:47
<philly-mac>
Hi, I am using cucumber with sinatra/capybara. I noticed that when I use it with rails there is a generator that produces a whole load of useful web steps for you. Is there such a generic thing to produce these steps for use with other frameworks, just to get you started?
02:30
ashley_moran joined
02:53
aslakhellesoy joined
03:14
joshkalderimis joined
03:24
<robholland>
morning all
03:36
<aslakhellesoy>
robholland: morning
04:23
<BobFunk>
having some problems with cucumber and rails 3
04:24
<BobFunk>
getting an "uninitialized constant ActionDispatch::Integration::Session::Test"
04:24
<BobFunk>
when trying to run the features
04:30
jschoolcraft joined
04:32
aslakhellesoy joined
04:32
<aslakhellesoy>
BobFunk: did you use the generator to set up your project?
04:33
<BobFunk>
yeah - script/rails g skeleton
04:33
<aslakhellesoy>
can you gist a trace?
04:35
<BobFunk>
just had a coworker install the bundle and do the script/rails g skeleton on another laptop with the same result
04:35
<aslakhellesoy>
BobFunk: I think maybe you need to add Test::Unit as a gem
04:35
<BobFunk>
gonna try that
04:37
<BobFunk>
ok -seems doing require 'test/unit/testcase' in the test environment seems to get us further
04:43
<aslakhellesoy>
BobFunk: Do you think Rails should be doing that require in the file where you get the uninitialized constant error?
04:44
<aslakhellesoy>
I think that would be a better fix TBH
04:44
<BobFunk>
yeah - it does sound like rails should handle that dependency
04:45
<BobFunk>
it's strange - it actually worked with jruby without the require 'test/unit/testcase'
04:45
<BobFunk>
was when trying to run the features in c ruby that it started breaking
04:45
<BobFunk>
anyway - now the features run in both jruby and ruby - but it seems like I'm running into a problem with sessions
04:46
<BobFunk>
gonna make sure - but it seems like the session cookie is not being updated
04:47
<BobFunk>
trying to get some facebook connect features to pass - and I can see from the test.log that the controller is setting the user_id in the session but after following the redirect it seems to be gone
04:48
<aslakhellesoy>
BobFunk: it would be great if you sent rails a patch for this.
04:51
<BobFunk>
first trying to replicate this session issue with something simpler than facebook connect
04:56
<aslakhellesoy>
BobFunk: sounds like you're having to unrelated issues
04:58
<aslakhellesoy>
s/to/two
05:17
<BobFunk>
yeah - seems unrelated
05:36
<BobFunk>
got a patch ready for rails requiring 'test/unit/assertions' from action_dispatch/test/integration
05:36
<BobFunk>
does lighthouse have any way to search for existing tickets beyond the tags?
05:37
<BobFunk>
ahh - found it
05:37
<antifuchs>
hi there. I'm trying to make a custom formatter for cucumber (0.6.2), but whenever I try to run my test suite with it, cucumber doesn't execute any steps; the formatter's methods are called with step.status = :undefined
05:37
<BobFunk>
seems I had to create a profile to see it
05:37
<antifuchs>
what's going on there?
05:39
<BobFunk>
ok - seems a require is not the solution - it seems to be a bundler related problem in reality
05:39
<BobFunk>
sounds like the same issue
05:41
<antifuchs>
forget that, I found out what's wrong; the problem is with ci_reporter, not with my formatter implementation.
06:36
<malesca_>
Submitting a GET form with Cucumber, the submitted params don't actually seem to be in the URL. So with request.request_uri and request.path_parameters, I don't see them. But they are in "params". So probably GETs are faked? Breaks some stuff.
06:59
<robholland>
Anyone else annoyed by the current cucuber textmate bundle which causes textmate to think it's not saved features?
07:33
<danlucraft>
robholland: my coworker is very annoyed by that
07:34
<robholland>
Glad it's not just me
07:34
<robholland>
Ah, there is an open issue
08:17
<BobFunk>
is there a good way with anotations or something to skip some tests by default
08:18
<BobFunk>
the server has to be running for these tests to work - and it can be a bit annoying if it has to start up when running unrelated features
08:19
<oc>
BobFunk: tags are OK
08:21
<BobFunk>
looks like it - are there any way to tell cucumber to always skip a specific tag unless you specify it at the command line?
08:21
<robholland>
Yes, using profiles
08:21
<oc>
in your profile
08:21
<BobFunk>
ahh - cool
08:21
<BobFunk>
seems like just what I need :)
08:22
<oc>
i.e. slow_integration_tests: --tags @slow --tags @integration
08:57
<msassak>
cap10morgan those links describe different things--are you trying to run cucumber with profiles, or are you trying to profile your cucumber tests?
08:58
<cap10morgan>
msassak: I'm just trying to get a profile report on my slow running features
09:01
<msassak>
i'm not sure if there is a built-in profiler, actually
09:19
<oc>
aslak will probably be online in 5 minutes
09:31
bcardarella_ joined
09:37
<mfaeh>
Which engine is the recommended one for testing js with cucumber?
09:38
<mfaeh>
Selenium, other?
09:39
<msassak>
mfaeh there isn't anything official
09:40
<mfaeh>
Ok, which works best from your experience?
09:40
<msassak>
mfaeh well i have had luck with capybara and culerity, but ymmv
09:41
<mfaeh>
Ok, thanks we'll try that.
10:27
<Sid_>
Hi there, my step definition files are not being found by cucumber on my work iMac but they work normally on my macbook which suggests some soft of problem outside of the application. Has anyone here had a similar problem?
10:29
<altogether>
Sid_: cucumber version same?
10:31
<Sid_>
no, iMac has cucumber rails 0.3.0. the macbook has 0.2.4
10:31
<Sid_>
I'll try the older version of cukes-rails
10:54
<BobFunk>
anyway to get capybara to not follow redirects?
10:55
<BobFunk>
testing openid authentication and when my servers sends the redirect to the openid server Capybara tries to follow it but while treating the absolute url as a relative url
11:21
<miwillhite>
I'm getting the following error when I try to run my features…not sure if I have everything setup correctly: super: no superclass method `requirement'
11:21
<miwillhite>
I created a cucumber entry in my database.yml
11:22
<miwillhite>
<- brand new to cucumber
11:22
<miwillhite>
Any ideas?
12:48
<fields__>
what's the right way to call a rake task from inside a cucumber test?
12:49
<fields__>
(I'm testing the task itself)
13:23
<bcardarella>
Why does Cucumber print green for when Scenario Outlines fail?
13:23
<bcardarella>
the dots are green
15:00
aslakhellesoy joined
15:00
<aslakhellesoy>
evening
15:04
aslakhellesoy joined
15:06
<aslakhellesoy>
robholland: re TextMate - see the tracker
15:06
<aslakhellesoy>
leaving files unsaved is annoying - and fixed
15:07
<aslakhellesoy>
mabes: hi mate
15:07
<aslakhellesoy>
saw your comment about Scenario Outline in the TM bundle
15:07
<robholland>
aslakhellesoy: I saw, it's fixed now
15:07
<aslakhellesoy>
It's still highlighted - I just simplified how
15:08
<aslakhellesoy>
the TM bundle can think of Scenario and Scenario Outline as the same thing - it just needs to know all the keywords, which it does now.
15:08
aslakhellesoy_ joined
15:09
<aslakhellesoy>
bad connection here.
15:09
<mabes>
aslakhellesoy: okay- good to know. thanks
15:09
<aslakhellesoy>
thanks for merging
15:10
aslakhellesoy_ joined
15:10
<mabes>
yeah, I just merged some stuff in from Tim as well.. the shortcut for "align table cells" is different. Apparently the one that we were using was conflicting with a global OSx shortcut
15:10
<aslakhellesoy>
mabes: Still want me to help find a heir
15:11
<mabes>
aslakhellesoy: sure- I could post to the list if you want me to
15:11
<aslakhellesoy>
Sure, or I can do it.
15:11
<mabes>
Yeah, I'll do it now
15:12
aslakhellesoy joined
15:12
<aslakhellesoy>
In order to make someone take it over you need carrots and whips :-)
15:12
<aslakhellesoy>
carrot = you'll be a hero
15:12
<aslakhellesoy>
whip = if you don't the thing will die
15:13
aslakhellesoy_ joined
15:13
<aslakhellesoy>
i'm still in the (slow) process of redoing the website, and my goal is to give good visiility to core tools and their maintainers.
15:13
<aslakhellesoy>
(that's the carrot)
15:16
aslakhellesoy joined
15:17
<mabes>
aslakhellesoy: stay or leave- make up your mind! :)
15:17
<aslakhellesoy>
mabes: i'm in a quiet pub - i'll stay. they have good beer.
15:17
<aslakhellesoy>
and a naive neighbour it seems
15:18
aslakhellesoy_ joined
15:20
aslakhellesoy_ joined
15:22
aslakhellesoy joined
15:23
aslakhellesoy_ joined
15:25
aslakhellesoy_ joined
15:26
aslakhellesoy_ joined
15:27
aslakhellesoy_ joined
15:28
aslakhellesoy_ joined
15:30
aslakhellesoy_ joined
15:33
aslakhellesoy_ joined
15:35
aslakhellesoy joined
15:36
aslakhellesoy_ joined
15:39
aslakhellesoy_ joined
15:40
aslakhellesoy joined
15:52
aslakhellesoy joined
16:02
aslakhellesoy_ joined
16:04
aslakhellesoy_ joined
16:05
<GitHub199>
cucumber: 07treetop-behaves_like_gherkin 03aslakhellesoy * f4c7640 (3 files in 2 dirs): I made most things lazy, so we can plug in a treetop gherkin builder (but i broke one feature - not sure how to fix that). good enough for now. Jeeez this AST is crufty as hell - can't wait to get rid of this shit. -
http://bit.ly/bHOOiF
16:07
<josephwilk>
Awesomeness!
16:11
aslakhellesoy joined
16:12
aslakhellesoy_ joined
16:19
aslakhellesoy joined
16:27
<mattwynne>
aslakhellesoy: you working gherkin into the old AST?
16:28
<aslakhellesoy>
mattwynne: yes
16:28
<mattwynne>
how come? have you given up on the gherkin AST as too big a step?
16:28
<aslakhellesoy>
we were biting over too much on the gherkin branch
16:28
<mattwynne>
good call
16:29
<aslakhellesoy>
so i'm making treetop behave like the gherkin parser
16:29
<aslakhellesoy>
then dropping it in will be fairly simple
16:30
<aslakhellesoy>
we'll still have the old crufty ast, but it lets us do one thing at a time and reduce the number of moving parts
16:30
<mattwynne>
good good good
16:30
<aslakhellesoy>
the ast is shit!
16:30
<aslakhellesoy>
references back and forth and ugly ifs all over the place
16:30
<josephwilk>
I liked that commit comment :)
16:31
<aslakhellesoy>
that's what you get when you take patches from 200 people i guess :-)
16:31
<aslakhellesoy>
josephwilk: hehe. not quite there yet, but not too far either.
16:32
<aslakhellesoy>
it _feels_ achievable at least
16:32
<mattwynne>
it will be much easier to kill it slowly though. that big step into the gherkin AST was scary.
16:32
<mattwynne>
and the old formatters will still work
16:33
<aslakhellesoy>
take a look at the html formatter
16:33
<aslakhellesoy>
i must have been asleep when i merged in that code.
16:34
<aslakhellesoy>
or some other kind of inconsciousness
16:35
<mattwynne>
yeah we can make it much easier to write formatters with what we were doing with the Gherkin AST
16:35
<mattwynne>
but one step at a time, eh?
16:35
<mattwynne>
in a week or two I'll be free to pair on this from time to time
16:35
<aslakhellesoy>
mattwynne: but we also have another big fish to fry wink wink
16:35
<mattwynne>
right now I am up to my elbows in painting and decorating
16:36
<mattwynne>
wink wink
16:37
<aslakhellesoy>
got a rolling rr yet?
16:37
<josephwilk>
Hows Scotland treating you mattwynne?
16:37
<mattwynne>
josephwilk: it's lovely up here
16:37
<mattwynne>
little bit of snow on the hills around us
16:37
<mattwynne>
our builder went skiing in Aviemore at the weekend
16:37
<mattwynne>
the central heating is on
16:38
<mattwynne>
the drains will get connected tomorrow I hope
16:38
<josephwilk>
Good stuff!
16:38
<aslakhellesoy>
sounds great matt
16:38
<mattwynne>
aslakhellesoy: I intend to hold onto my English accent. But I'm coming to terms with the fact that my son will sound like a Scotsman
16:39
<robholland>
night all
16:39
<aslakhellesoy>
night robholland
16:39
<josephwilk>
Night robholland
16:40
<mattwynne>
#cucumber: like the waltons
16:40
<aslakhellesoy>
mattwynne: we still need a scottish gherkin translation
16:40
<josephwilk>
We could present it in a lightning talk at Scotland Ruby conf!
16:43
<mattwynne>
Hoots mon: I am logged into my account
16:55
<aslakhellesoy>
by folks
16:55
<aslakhellesoy>
bye!
17:02
<rgoytacaz>
Hey guys
17:02
<rgoytacaz>
I just updated cucumber, through gem update
17:02
<rgoytacaz>
it installed cucumber 3.0(previous was 2.4)
17:03
<rgoytacaz>
now when I do cucumber from my rails app
17:03
<rgoytacaz>
it just says faiFailing Scenarios:
17:03
<rgoytacaz>
cucumber features/manage_stores.feature:5 # Scenario: Display Store List
17:03
<rgoytacaz>
cucumber features/manage_stores.feature:13 # Scenario: Create a valid Store
17:03
<rgoytacaz>
was working before.
17:03
<rgoytacaz>
how do I trace this?
17:16
<mattwynne>
rgoytacaz: can you copy / paste the output into a gist?
17:30
<rgoytacaz>
out is just that
17:30
<rgoytacaz>
output*
17:30
<rgoytacaz>
its all it says
17:31
<rgoytacaz>
no other error messages...
17:31
<rgoytacaz>
thats why I'm here =/
17:33
<rgoytacaz>
is there some option that I could use to trace the error?
17:36
<mattwynne>
rgoytacaz: --backtrace will give you a full stack trace
17:37
<yak_>
Hi, I am having trouble getting cucumber to run tests, can someone help me?
17:37
<rgoytacaz>
ah thx :)
17:37
<mattwynne>
rgoytacaz: try the pretty formatter too - it looks like you're using the progress one at the moment, yes?
17:38
<rgoytacaz>
mattwynne: I'm just typing cucumber
17:38
<rgoytacaz>
never used any options.
17:38
<mattwynne>
rgoytacaz: right. try cucumber --backtrace -f pretty
17:40
<rgoytacaz>
K,problem was that the db had been dropped..
17:40
<rgoytacaz>
thx guys =) noob stuf
17:40
<yak_>
I'm trying to run tests but currently seeing "no such file to load -- test/ (MissingSourceFile)"
17:41
<yak_>
With cucumber 6.3, rails 2.3.4
17:41
<rgoytacaz>
How do you guys deal with increasing validations on models after there are a number of tests on that model already?
17:41
<rgoytacaz>
that will break this tests
17:41
<rgoytacaz>
factories?
17:44
<mattwynne>
rgoytacaz: you're talking unit tests, right?
17:44
<mattwynne>
I usually get them to use the same method to create a valid object, then cripple it for the specific test
17:44
<mattwynne>
user = create_valid_user
17:44
<mattwynne>
user.username = ''
17:45
<mattwynne>
user.should_not be_valid
17:45
<mattwynne>
so then if the validation rules change, I just have to change the implementation of create_valid_user
17:45
<mattwynne>
works most of the time
17:45
<yak_>
Does anyone know what could be causing "no such file to load -- test/ (MissingSourceFile)"?
17:48
<yak_>
Ive tried uninstalling and reinstalling various gems with no luck
17:51
<mattwynne>
yak_: tried --backtrace to see what's calling it?
17:52
<yak_>
no such file to load -- test/ (MissingSourceFile) /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /Library/Ruby/Gems/1.8/gems/polyglot-0.3.0/lib/polyglot.rb:65:in `require'....
17:52
<yak_>
theres more, want it all?
17:54
<mattwynne>
yak_: I was hoping that would allow you to figure it out for yourself :)
17:54
<mattwynne>
you could paste it into a gist though if you like
17:54
<yak_>
actually this was due it looks like to a line in the rails/world.rb file, which id found somewhere b/c it was complaining it didnt exist
17:55
<yak_>
Now I am hanging on undefined method `allow_rescue=' for ActionController::Base:Class (NoMethodError) /Users/yakovrabinovich/Starstreet/starstreet/features/support/env.rb:34 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /Library/Ruby/Gems/1.8/gems/polyglot-0.3.0/lib/polyglot.rb:65:in `require'
17:57
<yak_>
Looks like I got it working by commenting out a line in world.rb and ActionController::Base.allow_rescue = false in env.rb... is this ok?
17:59
<mattwynne>
yak_: good. not sure why allow_rescue would give you an undefined method. Did they move it in a rails upgrade maybe?
17:59
<mattwynne>
night all
18:53
<textarcana>
/join #org-mode
19:19
RurouniJones joined