ソフトウェア開発でのテストとは何かを単純に言うと、成果物が期待通りであるかを検証する作業といえる。こう動作してほしいという期待を入力に、成果物がその通りに動作するかを検証するのがテストである。 となると、成果物とは何で、期待とは何かが問題にな... 続きを読む
A quick and easy way to visually test out your Rails application's API. View the Project on GitHub fredwu/api_taster Download ZIP File Download TAR Ball View On GitHub ApiTaster A quick and easy way to visually test out your Rails application... 続きを読む
Example is a modified test from Morgan Roderick's PubSubJS. "test should call subscriber": function () { var spy = sinon.spy(); PubSub.subscribe("message", spy); PubSub.publishSync("message", undefined); assertTrue(spy.called); } Example is a... 続きを読む
注意: 長いです。 一言まとめ: withinとtest-unit-capybaraを使ってHTMLのテストを書くと問題を見つけやすくなる。 HTMLに対するテストに限らず、開発を進めていく中でテストが失敗する状況になることは日常的にあることです。HTMLの場合は、入力フォームのラベ... 続きを読む
Capybara とは https://github.com/jnicklas/capybara Capybara aims to simplify the process of integration testing Rack applications, such as Rails, Sinatra or Merb. とのことです。 要は、 Rack アプリケーションの結合テストのためのライブラリです。... 続きを読む
Hudson is a great tool for your continuous integration needs. It’s very easy to setup and can run/monitor multiple types of tasks. Some have used it for Python and this blog entry will show you how to get Hudson setup quickly for running you... 続きを読む
ご無沙汰しています。KBMJのプログラマのx5rです。 最近、私が携わるプロジェクトでは、外部APIを利用したい、一部の機能を外出しにしてサービス間で連携したいという要望が徐々に増えつつあります。 ただし、その外部システム(サービス、API)と連携する機能... 続きを読む
javascriptJavaScript の進化ここ 1, 2 年で JavaScript という言語は何倍も高速化されました。それは何故でしょうか。その要因を少し考えてみました。 SunSpider の出現その一番の要因は、 JavaScript のパフォーマンステスト SunSpider ではないでしょうか。S... 続きを読む
この連載では Test::Unit を代替するテスティングフレームワークである RSpec (先日、サイトが移転しました。新しい URL は http://rspec.info です) の使い方や、 その背景にある考え方を何回かに分けて連載形式でお届けします。 連載全体を通じて、次のような... 続きを読む
かなりネタなエントリー。 Macにはsayコマンドと言うものがあって、入力した英単語とかをしゃべらせることができる。詳細はMacの手書き説明書さんが最近エントリー書いているのでそちらを見てくださいな。 Macが歌いだす!? | Macの手書き説明書 んで、今回は... 続きを読む
0.8.0の目玉機能、マルチウィンドウモードでフレーム対応の動作確認を実施(ついでにポップアップウィンドウも)。テスト対象のアプリ(ってほどでもないけど)は以下のような要素を持っている。入れ子のフレーム(Frameの中にiframe)リンクのtarget属性_top指定でト... 続きを読む
<embed src= "../www.youtube.com/swf/l.swf?video_id=EDb8yOM3Vpw&rel=1&eurl=http:%252F%252Fseleniumdesign.googlepages.com%252Findex.html&iurl=http:%252F%252Fi.ytimg.com%252Fvi%252FEDb8yOM3Vpw%252Fdefault.jpg&t=OEgsToPDskKN-LpcTtnPY-b0psxw_mf1&c... 続きを読む
We are putting Watir on Safari. The original Watir (Web Application Testing in Ruby) project supports only IE on Windows. This project aims at adding Watir support for Safari on the Mac. Current release: safariwatir-0.2.5 Prior to its 0.2.0 r... 続きを読む
Automated testing that doesn’t hurt Watir is a simple open-source library for automating web browsers. It allows you to write tests that are easy to read and easy to maintain. It is optimized for simplicity and flexibility. Watir drives brow... 続きを読む
This project provides a plugin to make it easier to write Watir (Web Application Testing in Ruby) tests for Rails applications. Watir on Rails supports both IE and Safari. Dependencies: gem install [safari]watir Installation: ./script/plugin ... 続きを読む