Sunday, September 23, 2018
Mastermind (part 1)
This article is the first part of a TDD (test driven development) example in Ruby. It implements a game named Mastermind.
Read the full entry at http://www.alef1.org/articles/2012/mastermind_p1.html.
Note: The article was first published on December 10, 2012.
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.
Subscribe to:
Posts (Atom)