Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.
Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.
jasmine-nodeがnpmで入るようになってたので使ってみた。 これを使うと完全にコマンドラインのみでJasmineを使うことが可能となり、テスト結果もブラウザではなくターミナルに表示される。 自分にとってはRailsやらPHPやらのサーバーサイドプログラミングで慣れ親しんだ形でございます。 しかしTitaniumをいじってたはずがいつの間にかNode.jsの世界に迷い込んでるんだけど、あんだこれ。 準備 インストール npm install jasmine-node ディレクトリの準備 mkdir myproject cd myproject mkdir lib mkdir spec libにはテスト対象の実コードを置く。 specにスペックファイルを置く。 実コードを置く場所を変えたければspecs.jsを書き換えればよい。 Jasmineとspecs.jsのコピー スペックを走
Repo was moved to own organization. See https://github.com/shouldjs/should.js. should.js should is an expressive, readable, test framework agnostic, assertion library. Main goals of this library to be expressive and to be helpful. It keeps your test code clean, and your error messages helpful. It extends the Object.prototype with a single non-enumerable getter that allows you to express how that o
Asynchronous behaviour driven development for Node. There are two reasons why we might want asynchronous testing. The first, and obvious reason is that node.js is asynchronous, and therefore our tests should be. The second reason is to make tests which target I/O run much faster, by running them concurrently. Write some vows, execute them: $ vows test/* --spec Get the report, make sure you kept yo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く