En el entorno empresarial contemporáneo, las auditorías internas y externas desempeñan un papel crucial en el mantenimiento de la transparencia, la eficiencia y la responsabilidad dentro de las organizaciones. Estos procesos de revisión no solo aseguran que las empresas cumplan con las normativas y leyes aplicables, sino que también contribuyen a la mejora continua y […] La industria cinematográfi
About JSMock is a fully featured Mock Object library for JavaScript that provides the necessary tools to do effective interactive based testing. JSMock provides expectation recording and matching, and has the ability to return, throw, and stub on object method calls. The interface is simple and easy to use, which makes testing easy. Compatibility JSMock has been tested with: Internet Explorer 6.0
I don't know how to unit-test the main method! Obviously you have no imagination. You test the same method the same way you test static methods: provide known input, and test that the output is what you expect given the input. Which is exactly the same way you'd test Math.abs() and numerous other static methods. (Which is exactly the way I test C# extension methods, e.g. http://anonsvn.mono-projec
YUI Test is a testing framework for browser-based JavaScript solutions. Using YUI Test, you can easily add unit testing to your JavaScript solutions. While not a direct port from any specific xUnit framework, YUI Test does derive some characteristics from nUnit and JUnit. YUI Test features: Rapid creation of test cases through simple syntax. Advanced failure detection for methods that throw error
The JavaScript team maintains a library of tests that are based on the ECMA-262 standard for web scripting languages and other documentation for JavaScript. If you find a bug in the core JavaScript engine, you can now contribute a test to our library. Your tests will be used to reproduce bugs, verify bug fixes, prevent regressions, and improve the stability of the JavaScript engine. If you are con
http://martinfowler.com/bliki/TestDouble.html Gerard Meszarosが、様々なXunitフレームワークを使用したパターンを集めた書籍を執筆中である。 彼は、ある厄介なことに出くわしている。 システムの一部分をテストするためにスタブ化することがあるが、 その名前というのが、スタブ、モック、フェイク、ダミーなど、色々とあるのだ。 そのため彼は、自身の用語集を作成した。 この用語集は広く普及すべきものだろう。 彼が一般的な用語として使っているのは、「Test Double(テスト代役)」という言葉だ(スタントの代役(double)を想像してほしい)。 Test Doubleは、テスト用にオブジェクトを入れ替えるときに一般的に用いられる言葉である。 Gerardが作成したリストには、様々なDoubleが載っている。 ダミーオブジェクトは、受け渡
TEST http://d.hatena.ne.jp/devbankh/201001 モックやスタブを使った効率的なユニットテスト http://d.hatena.ne.jp/devbankh/201002 モックとスタブの違い コミュニケーション http://d.hatena.ne.jp/devbankh/20051124 簡単かつ効果的に話すために "モックオブジェクト"という言葉は、テストのために本物のオブジェクトをまねる特殊なオブジェクトを表す言葉として定着した。しかしモックという言葉は元々スタブをキャッチーにしたものでなく、[スタブを使ったのとは別の] ユニットテスト方法を用いるためのものなのだ。この記事では、モックオブジェクトのファンに好まれる相互作用中心のテストと、よく行わている状態中心のテストスタイルとの違いを説明するために、モックとスタブの違いについて掘り下げる。 目次
Selenium on Rails: Overview Selenium on Rails provides an easy way to test Rails application with SeleniumCore. This plugin does four things: The Selenium Core files don‘t have to pollute /public. No need to create suite files, they are generated on the fly — one suite per directory in /test/selenium (suites can be nested). Instead of writing the test cases in HTML you can use a number of better
品質向上のために、Ruby のテスト技法を勉強しています。 理解を深めるためにブログを書くメソッド。 以下では、Ruby のユニットテストを行うクラス Test::Unit を利用したテスト技法について説明します。テストされるクラスを設定簡単なテストの例を見てみます。まず、テスト対象のクラスを設定します。class Foo def foo return 'foo' end def bar return 'bar' end endテストコードを書く次に上記のクラスのメソッドをテストするクラスを以下のように書きます。require 'test/unit' class FooTest < Test::Unit::TestCase # 各テストメソッドが呼ばれる前に呼ばれるメソッド def setup puts '新しいテストを開始します。' @obj = Foo.new end # 各テストメソ
Test::Unit が標準だと思っていたら、まさか RSpec なるものがあるとは。。 ということで、RSpec について学習しています。 参考サイト: スはスペックのス 【第 1 回】 RSpec の概要と、RSpec on Rails (モデル編) RSpec -1.0.8RSpecとは??RSpec は Ruby で書かれたコードの振舞いを実行可能な形式で記述するドメイン特化言語 (Domain Specific Language: DSL) を提供するフレームワークです。 RSpec における思想については上記参考サイトに書いてありますのでそちらを参考にしてもらうとして、実際にテストコードを書いてみます。 インストールgem 経由でインストールできます。# gem install rpsecRSpec の基本コマンドは、spec です。以下のコマンドで RSpec のバージョン#
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く