You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
2.48 OpenEdge Advanced Business Language (ABL), Progress 4GL
simple, flexible, fun Mocha is a feature-rich JavaScript test framework running on node and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on GitHub. Features browser support simple async support proper exit status for CI support etc auto-detects and
初めましてこんにちは。ソーシャルクライアント開発の tanabe と申します。 今回は?Sinon.JS を使った JavaScript のテスト方法を紹介したいと思います。 Sinon.JS って何? Sinon.JS はノルウェーのエンジニア Christian Johansen さんが書かれた、JavaScript 用のライブラリです。スタブやモック、フェイクオブジェクトの提供に特化していて、QUnit などのテスト用のフレームワークや実行環境に依存しない所が特徴です。Christian Johansen さんは?Test-Driven JavaScript Development の著者でもあり、こちらは近々翻訳版 が登場するようです。 では早速、Sinon.JS を使ったテスト手法をご紹介していきたいと思います。本稿ではテストフレームワークは QUnit を採用しています。 時間
JSer.info #28 - ECMA-262第5版の日本語訳をやり始めた方がいるみたいですね。(素晴らしい) 完成したら、元の文章のようにすべての項目にリンク(アンカー)を貼った目次見たいのがあると便利そうです。またJavascript Gardenのちゃんとした日本語訳をやり始めた方がいるみたいですね いい文章と必要なドキュメントは翻訳があって困ることはありません。 ヘッドライン ECMAScript関連ドキュメント http://dl.dropbox.com/u/9124140/tsoft/ecmascript.html ECMA-262第5版の日本語訳 JavaScriptで実装されたJavaScriptエンジン「Narcissus」をFirefoxで利用するためのアドオン 「Zaphod 1.2」、Mozilla Labsがリリース - SourceForge.JP Magaz
A JavaScript unit testing framework Jarvis is a unit testing framework written in JavaScript. It’s based heavily off of the API of NUnit, which is a rewrite of a port of JUnit which is a port of SUnit. Eventually, there will be no new code: just rewrites of old code. Download Node: npm install jarvis-test -g Browser: v2.0.3 Source code: https://github.com/tmont/jarvis Example Here is a quick taste
Monday 26 July, 2010 by moschel Last week we released Syn and mentioned how all testing solutions suffer from some fatal flaw. Today, we are releasing a beta of FuncUnit, which has "solved" JavaScript web application testing. Features Functional Testing - Test complex behavior like drag-drop. High Fidelity - Create identical events that a mouse and keyboard create. Run tests in a real browser. Aut
Standalone test spies, stubs and mocks for JavaScript. Works with any unit testing framework. Get Started Star Sinon.JS on Github Get Started Install using npm To install the current release (v20.0.0) of Sinon: npm install sinon Setting up access Node and CommonJS build systems var sinon = require("sinon"); Direct browser use <script src="./node_modules/sinon/pkg/sinon.js"></script> <script> // Ac
今年の RubyKaigi 2010で、 Sarah Meiさんによる JasmineというJavaScriptのテスティングフレームワークの紹介発表がありました(発表時はRCでしたが、先日(2010年9月14日)に無事バージョン1.0がリリースされています)。 今回はこの Jasmine を紹介したいと思います。 特徴 Jasmineは以下のような特徴を持ったテスティングフレームワークです。 JavaScript自身でJavaScriptをテスト可能 RSpec風の記述が行える スタンドアローン版とRubyGem版 JavaScript自身でJavaScriptをテスト可能 テスト用に専用の言語・フォーマットを使う必要はありません。 RSpec風の記述が行える 全体の構造は、RSpecのユーザーにはお馴染のdescribe や it という記法で記述します。 Rubyのブロックほど簡潔に
In addition to low-level tools for stubbing and mocking and high-level tools to integrate with test runners, Sinon provides a few useful utilities. This post explains the first of these, which is fake timers and Dates. Testing time Client-side JavaScript frequently utilizes setTimeout, clearTimeout, setInterval and clearInterval to defer execution. When testing code that depends on these functions
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 modified test from Morgan Roderick's PubSubJS. "test should call all subscribers when exceptions": function () { var spy = sinon.spy(); var stub = sinon.stub
あるいは kanazawa.js v0.0.1 勉強会 : ATND に参加してきた。 今回はとりあえず今注目している JavaScript テスティングフレームワークの紹介というかリンク集めだけ。 まとめQUnit と Jasmine について調べたよ!好きに使って! Jasmine の使い方はまだ書くことあるんだけど疲れたからまた今度ね!書いたよ! Jasmineをもう少し詳しく紹介してみる も読んでみて! 自分の背景JsUnit を使って中規模なコードを書いた経験がある。普段は PHP + SimpleTest で概ね TDD で書いている。Ruby はまだ Test::Unit を使っている。RSpec に移行したいと思いながらタイミングをつかみそこねている。 テスティングフレームワークにできることまず原則は JS のみのユニットテストこれをユニットテストと呼ぶか TDD と呼ぶか
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く