#121 ✓out-of-date
gaffo

webrat integration tests should work in selenium mode as well: merb

Reported by gaffo | January 13th, 2009 @ 12:12 AM

get the integration tests running in selenium mode for merb

Comments and changes to this ticket

  • Thomas Marek

    Thomas Marek January 14th, 2009 @ 04:27 PM

    • Tag changed from featurerequest, merb, test!, test::unit to featurerequest, merb, rspec, test!

    Did already someone started with that? If not, i would like to try to implement that. If that's ok?

  • Amos King

    Amos King January 14th, 2009 @ 04:48 PM

    • Tag changed from featurerequest, merb, rspec, test! to featurerequest, merb, rspec, test!, test::unit

    Why remove Test::Unit from the tags, Thomas?

  • gaffo

    gaffo January 14th, 2009 @ 06:12 PM

    • State changed from “new” to “open”
    • Assigned user set to “gaffo”

    Thomas. No one has started. But it'd be great if you could pop into the webrat channel on irc on freenode and discuss this. there is quite a bit of reusablity that we are looking at doing. Basically we want to have the same toy apps created in merb, selenium and rails (eg they all do the same things), and then eventually have the same tests across all of the 'modes' of rails.

    Check out the changes being made in: http://github.com/gaffo/webrat/t...

    For some examples.

  • gaffo

    gaffo January 14th, 2009 @ 06:12 PM

    Also, this is the one for test::unit, not rspec. The should be another ticket for this in rspec mode.

  • Thomas Marek

    Thomas Marek January 15th, 2009 @ 02:58 AM

    Sorry for the tag change, i thought you would try to implement the selenium mode with the default test framework of each web framework first. And that's rspec for merb. What do you mean with "There should be another ticket for this in rspec mode."? I thought the mode is selenium for both frameworks?

    @gaffo: I tried to ping you yesterday in the irc channel but the time difference in our case is not the best... ;-) i'm from germany...

    To get the selenium mode running for every web framework i would introduce the configuration option "web_framework" which can be set to rails, merb or sinatra (at the moment). Then we could move the logic for starting and stopping the web application into a WebFrameworkHandler class. What do you think?

  • Amos King

    Amos King January 15th, 2009 @ 11:17 AM

    Thomas, it seems to me that selenium mode shouldn't care what framework you are in. If a server is running and it is hitting it through the browser. Can you tell me more of why you need the framework option?

  • Thomas Marek

    Thomas Marek January 15th, 2009 @ 11:44 AM

    • Tag changed from featurerequest, merb, rspec, test!, test::unit to featurerequest, merb, test!, test::unit

    Webrat needs to know which web framework your application uses so that it can start and stop your application automatically. At the moment the use of "mongrel_rails" is hardcoded into the selenium mode. But that doesn't work with merb and sinatra.

  • Amos King

    Amos King January 15th, 2009 @ 03:23 PM

    Thomas, thanks we will look into it unless you want patch it.

  • Thomas Marek

    Thomas Marek January 15th, 2009 @ 03:29 PM

    I will work on it... i already chatted with gaffo about it in the irc channel this morning.

  • Bryan Helmkamp

    Bryan Helmkamp June 14th, 2009 @ 10:13 PM

    • State changed from “open” to “out-of-date”

    Zach Dennis and Mike Gaffney are leading the efforts on this front, but I don't think we need a ticket to track it. Thomas -- If you're still interested in helping out, please sync up with them on IRC.

    Cheers,

    -Bryan

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

Pages