Node, iOS, Android, HTML5, JavaScriptの話題。ときどきMacやLinux。 Zombieは、ブラウザをエミュレートできる軽量なテスティングフレームワークです。 Mochaと組み合わせると、わかりやすくテストを書くことができます。 $ npm install zombie mocha expect.js Googleにアクセスしてタイトルが一致しているかテストを書いてみます。 Mochaを使いますので、test ディレクトリを作成し、その中にテスト用のファイルを作成します。 test/googleTest.coffee expect = require 'expect.js' Browser = require 'zombie' browser = new Browser() describe 'Googleのテスト', -> it 'google.com