<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi all,<br>
    <br>
    i was investigating options we have for $SUB, here is short summary
    to start discussion about this topic.<br>
    <br>
    As for any other language there are unit testing frameworks[1] also
    for JS. Comparison of them can be found all around the internet
    [2][3]. <br>
    I am not sure if this is the way we want to go right now since there
    is not so much logic on the client side of conductor.<br>
    <br>
    Another option is to use testing frameworks we currently use for
    testing ruby code with some extension to interpret JS.<br>
    In current stage ie. almost no JS tested at all. We can choose
    between Rspec request specs[4][5] or Cucumber scenarios and two
    plugins to interpret js capybara-webkit[6] and the
    selenium-webdriver[7]. I would prefer combination of rspec and
    capybara for its speed and simplicity when writing/reading tests.<br>
    <br>
    --<br>
    Tomas<br>
    <br>
    1 -
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a
href="http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#JavaScript">http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#JavaScript</a><br>
    2 -
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a
href="http://testdrivenwebsites.com/2010/04/19/java-script-xunit-style-frameworks-comparison/">http://testdrivenwebsites.com/2010/04/19/java-script-xunit-style-frameworks-comparison/</a><br>
    3 -
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a
href="http://stackoverflow.com/questions/300855/looking-for-a-better-javascript-unit-test-tool">http://stackoverflow.com/questions/300855/looking-for-a-better-javascript-unit-test-tool</a><br>
    4 -
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a href="http://epimetrics.com/entries/3129">http://epimetrics.com/entries/3129</a><br>
    5 -
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a
href="https://www.relishapp.com/rspec/rspec-rails/v/2-9/docs/request-specs/request-spec">https://www.relishapp.com/rspec/rspec-rails/v/2-9/docs/request-specs/request-spec</a><br>
    6 -
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a href="https://github.com/thoughtbot/capybara-webkit">https://github.com/thoughtbot/capybara-webkit</a>
    <br>
    7 -
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a href="http://seleniumhq.org/projects/webdriver/">http://seleniumhq.org/projects/webdriver/</a><br>
    <br>
  </body>
</html>