00:58
aslakhellesoy joined
02:44
aslakhellesoy joined
02:51
ashley_moran joined
03:22
joshkalderimis joined
03:32
aslakhellesoy joined
04:31
<mfojtik>
hi, it's possible to run 'rake' task inside cucumber step definition ?
04:32
<mfojtik>
I used 'system()' for this, with 'test' Rails environment but rake task doesn't see any record in database
04:34
<josephwilk>
mfojtik: You can invoke rake tasks via ruby
04:50
jschoolcraft joined
04:59
<mfojtik>
ok, now I getting: 'Don't know how to build task 'environment' (RuntimeError)'
05:00
<mfojtik>
(after I loaded rake file and execute it by Rake::Task['test'])
05:02
<mfojtik>
ok ;-) .invoke -> .execute
05:02
<mfojtik>
now it seems like ok ;)
06:13
<mfojtik>
hmm is there way howto reload 'model' after I changed it by rake task ?
06:13
<mfojtik>
in step definition
06:14
<mfojtik>
^^ for example
06:16
<tils>
what about simply calling user.reload ?
06:16
<tils>
or user.permissions.reload
06:17
<mfojtik>
tils: i tried both with no success
06:18
<tils>
mfojtik: you would have to switch off transactions for cucumber as well
06:18
<mfojtik>
i tried this as well
06:18
<mfojtik>
still same result
06:20
<mfojtik>
seems like that rake task opens new connection into database and commit changes
06:20
<hka>
Has anyone tried to run Cucumber tests in parallel? We are currently starting to use Cucumber, but foresee that as the number of tests grows, the total execution time may become an issue. Parallel execution would then be of great help. I have seen testjour, but that does not allow parallel execution on a single machine. Any tips, links or descriptions would be much appreciated
06:21
<mfojtik>
but cucumber uses old connection. maybe reconnecting database could help
06:21
<robholland>
hka: best to check the ml
06:22
<tils>
mfojtik: what do you mean by 'old' connection? can you confirm that it connects to the test database, e.g. by watching log/cucumber.log while running the feature?
06:22
<hka>
rob: Thank you, will try that.
06:25
<mfojtik>
tils: I can't see any record about rake task in logs
06:27
<tils>
I'm having intermittent cucumber / culerity failures since upgrading jQuery from 1.3 to 1.4, it sometimes cannot see some elements within content loaded from ajax. However, it does sometimes find other elements within the same content part loaded through ajax. Can anyone give me a tipp how to debug this?
06:27
<tils>
I tried increasing Capybara.default_wait_time = 30 already, doesn't seem to have an effect
06:28
<tils>
mfojtik: not sure which environment rake uses when you call it like that, maybe it's connecting to the wrong one? If the rake task does database updates, those should be visible in the relevant log
06:31
<mfojtik>
tils: Environment: test
06:31
<mfojtik>
rake is connection to test
06:43
<tils>
on every run I'm getting different failures :-(
07:20
<tils>
I'm trying to use the latest jar files of htmlunit 2.8 snapshot now, instead of the ones provided in celerity
07:24
<tils>
still same problems, some elements are not found
07:27
<jarib>
tils: htmlunit has the jquery test suite as part of its own test suite
07:27
<jarib>
but i'm guessing it's not on 1.4 yet
07:29
<jarib>
if i were you, i'd try to reduce the problem and submit it to the htmlunti list/tracker
07:30
<jarib>
it'll probably be fixed quickly if it can be reproduced by running jquery's test suite
07:30
<jarib>
(or if you can reduce the bug)
07:31
<tils>
jarib: yes I think I saw the testsuite for jquery is still on 1.2
07:32
<tils>
jarib: I'll try to reproduce it, my problem currently is that the failures are intermittent and on one machine (the CI server), but do not occur locally
09:45
aslakhellesoy joined
11:23
<aslakhellesoy>
mabes: hi what's up
11:24
<aslakhellesoy>
i just went through all the tickets in the Cucumber TM bundle and commented. (And added a new ticket).
11:25
<mabes>
oh, ok.. sorry I am like the worst maintainer of that project. I just don't have much motivation. I merge in commits from people I trust but that is all I have been doing recently
11:27
<aslakhellesoy>
mabes: have you tried to see if someone wants to take over stewarship for it?
11:28
<aslakhellesoy>
I understand you're not motivated if you don't use it :-)
11:28
<mabes>
I posted on the ML a while ago, yes.. a long while ago (when it was the rspec mailing list)
11:28
<malkomalko>
is it possible to run features by tag with cuke4duke?
11:28
<mabes>
no one really stepped up
11:29
<aslakhellesoy>
malkomalko: cuke4duke is no different from cucumber, except for allowing stepdefs in other programming languages.
11:29
<aslakhellesoy>
So yes
11:29
<malkomalko>
even when running from maven?
11:29
<aslakhellesoy>
malkomalko: even when running from maven
11:30
<malkomalko>
mvn cuke4duke:cucumber -t @tag ?
11:30
<mabes>
aslakhellesoy: I messaged the person who submitted the patch about your new GH issue. Hopefully they can resolve it
11:31
<aslakhellesoy>
malkomalko: no, mvn doesn't magically let you specify cucumber command line args.
11:31
<aslakhellesoy>
sec
11:33
<aslakhellesoy>
malkomalko: have you tried: mvn cuke4duke:cucumber -DcukeArgs="-t @tag"
11:33
<aslakhellesoy>
-and then use ${cukeArgs} in your POM?
11:33
<aslakhellesoy>
-to pass the arguments on to cucumber?
11:33
<malkomalko>
no I have not, let me try that out
11:33
<malkomalko>
I will report back to let you know if that worked
11:34
<malkomalko>
thank you
11:34
<aslakhellesoy>
(i haven't tried it either :-)
11:41
<aslakhellesoy>
malkomalko: I just got a new mac, so I'm building cuke4duke 4 the 1st time
11:42
<aslakhellesoy>
taking for ever to download the jars
11:44
<malkomalko>
if this works, I'll add a summary to the wiki
12:14
<malkomalko>
it worked
12:26
<aslakhellesoy>
malkomalko: great
12:30
<aslakhellesoy>
Can you scroll down to the bottom and verify that that's correct?
12:32
<aslakhellesoy>
malkomalko: and if not, please correct it
13:38
<malkomalko>
yah that's perfect asklak
15:26
<agenteo>
is anybody here using celerity?
16:37
<jarib>
agenteo: i am :)
16:37
<agenteo>
successfully? :)
16:37
<agenteo>
I was setting it up cause I want to test one of those 'add a new name' JS links
16:43
<jarib>
agenteo: sucessfully yes
16:43
<jarib>
i don't do a lot of rails though
16:43
<jarib>
what's the problem?
16:44
<agenteo>
it's prob related to webrat steps, do you have to get rid of all of them and use celerity's?
16:44
<agenteo>
I get a "select_list not found using 'name'"
16:45
<jarib>
hmm, i really don't know
16:45
<jarib>
i didn't know webrat supported celerity
16:45
<jarib>
i know capybara does culerity/celerity
16:50
<agenteo>
I will have another look :) ta
17:39
<anlek>
Is there a way to set the default host! before anything runs in Cucumber?
22:01
<Pistos>
Hi, folks. Anyone here use Pivotal Tracker?
22:37
<anlek>
I'm trying Pistos
22:37
<anlek>
Anyone awake at this time?
22:47
<Pistos>
anlek: Okay. (I'm awake.)
22:47
<Pistos>
Just getting started with PT, been using it just over a week, and I like it.
22:47
<Pistos>
I'm not an experienced BDD or Agile person by any means, but this PT makes these techniques look attractive.
22:48
<anlek>
Pistos, I'm in your boat, I signed up a few weeks ago and today was the first day I started using it.
22:48
<anlek>
However, I was told it has something to do with Cucumber, but I have yet to find a link
22:51
<Pistos>
anlek: Maybe the PT developers use Cucumber, I dunno.
22:51
<Pistos>
But, AFAICT, I think it's just that they both have to do with BDD and/or XP.
22:53
<anlek>
Pistos: I guess. I'm still learning what I can do with PT.