Hydra
  1. Hydra
  2. HYDRA-276

Automated Testing for Javascript (Culerity?)

    Details

    • Type: Story Story
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      == The Story

      In addition to testing HTML views with Cucumber, we want to be able to write automated tests for javascript behaviors in the browser.

      == The solution

      The strongest contender is Culerity. The problems with culerity:

      1) it requires JRuby (it uses Java to launch a headless browser for the tests), so we would want the culerity tests to be optional
      2) If we use Culerity, we will end up with two parallel stacks of step definitions (ie. "The "abstract" field should be set to "foo") -- one set that relies on regular cucumber/webrat behaviors, the other relies on Celerity loading the headless browser. Step definitions are already complicated to maintain. It would be bad to double the hassle.

        Issue Links

          Activity

          Hide
          Rick Johnson added a comment -
          Assigning this to Dan per discussion from Hydra committers call
          Show
          Rick Johnson added a comment - Assigning this to Dan per discussion from Hydra committers call
          Hide
          Garrick Van Buren added a comment -
          Dan - what's the status of this ticket? I'm seeing a need for it as well and would like to help out.
          Show
          Garrick Van Buren added a comment - Dan - what's the status of this ticket? I'm seeing a need for it as well and would like to help out.
          Hide
          Matt Zumwalt added a comment -
          Take a look at http://pivotal.github.com/jasmine/ Jasmine: BDD for Javascript. It's built on RSpec, so we could put Cucumber on top of that.
          Show
          Matt Zumwalt added a comment - Take a look at http://pivotal.github.com/jasmine/ Jasmine: BDD for Javascript. It's built on RSpec, so we could put Cucumber on top of that.
          Hide
          Matt Zumwalt added a comment -
          Refer to the existing notes too, but our current best guess at how to do this would be to try the tools described in http://robots.thoughtbot.com/post/1658763359/thoughtbot-and-the-holy-grail (thanks to jkeck for finding & recommending the post)
          Show
          Matt Zumwalt added a comment - Refer to the existing notes too, but our current best guess at how to do this would be to try the tools described in http://robots.thoughtbot.com/post/1658763359/thoughtbot-and-the-holy-grail (thanks to jkeck for finding & recommending the post)
          Hide
          Justin Coyne added a comment -
          No more js in hydra
          Show
          Justin Coyne added a comment - No more js in hydra

            People

            • Assignee:
              John Scofield
              Reporter:
              Matt Zumwalt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: