Thursday, July 30, 2015

Testing Javascript from Ruby (part 2)

The previous part introduced a technique for testing client-side code from Ruby. This part presents more tests and ends with some benchmarks.

Read the full entry at http://alef1.org/articles/2015/test_javascript_from_ruby_02_testing_internals.html.

Thursday, July 23, 2015

Testing Javascript from Ruby

Developing a site using one of the numerous Ruby Web frameworks does not help in automating the tests for the client-side code (Javascript code). How is it possible to test that code? How to automate such tests?

Testing user interactivity is pretty hard to automate not to say that it coulld be a waste of time…

If the Javascript code contains complex algorithms that can be refactored so that they do not need to play with buttons, input fields or to change the DOM, next approach can be used: automate the Javascript tests from Ruby.

Read the full entry at http://alef1.org/articles/2015/test_javascript_from_ruby_01_technique.html.