Testing

Basic setup for a Node.js-based TDD Code Kata

In the last post I suggested a minimal setup to begin with ruby-based TDD. In this post I want to show a possibile minimal setup for node.js-based TDD (node.js and npm must be installed). The kata will be again The Game of Life. I’m not an expert of Node.js, so I hope what I’m writing is correct :) I’ll use the test framework Mocha and expect.js, a “Minimalistic BDD-style assertions for Node. … »

Basic setup for a Ruby-based TDD Code Kata

In the last weeks with the guys of the Firenze Ruby Social Club we started to think about organizing some Code Katas to play with test-driven development and yesterday we met to play with The Game of Life. We used Ruby and RSpec with a simple setup that I want to report here if you’d like to play with some katas. Although probably a Kata exercise won’t need many gems, in ruby projects I like to always use a Gemfile with the required gems: … »