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
Van Wilson's Site Quidquid latine dictum sit, altum videtur Menu and widgets by Testing your code is one of the most important things that you can do to make yourself a better coder. That’s not just because testing can prevent you from breaking previously-working code when you make changes (also known as regressions), but more importantly, it forces you to write better code in the first place. We
JSer.info #202 - Windows 10の新しいプレビュー版が公開されたため、IEのプレビュー版(IE12のプレビュー版?)もアップデートされました。 Living on the Edge – our next step in helping the web just work - IEBlog - Site Home - MSDN Blogs IE11にてEdge document modeというのが導入されて、IEのプレビュー版もこのEdgeモードがデフォルトになります。 EdgeモードではウェブサイトのX-UA-Compatibleを無視し互換モードにはならないようになっています。 逆に互換表示モードとなるのはイントラネット、互換表示リストに記載されてるサイト、エンタープライズモードで指定した場合のみとなります。 "Living" Edge document mode,
Why do we hate testing? How do we test JavaScript? How do we test Backbone.JS? (Credits to @searls for slides 6 through 12, used with permission).
Behavior-Driven JavaScript Documentation:(日本語訳) 1.3 Not yet translated below 2.0 2.1 2.2 Edge Jasmine on GitHub
最近、私の中で Backbone.js と共に注目の Jasmine のドキュメントを和訳しました。 本家のドキュメントはこちらです。 和訳したものはこちらです。 (もし、訳で怪しいところがあればご指摘ください。) http://mitsuruog.github.com/jasmine/ ちなみに Jasmine は Javascript のテスティングフレームワークの 1 つです。 他のフレームワークを満足に扱ったことがないので、あまり偉そうなことは言えませんが、特徴として次のようなことを挙げておきます。 standalone 版(JS ファイル)があり、ブラウザのみでテスト実行と結果の確認ができる。 テストケースのネストが可能、(Java で言うことの)setUp、tearDown 機能がある。 豊富な matcher。 Mock(Spy)が割と簡単に作れる。 jasmine-jque
Home/Categories/Backbone/Testing Backbone + RequireJS Applications with Jasmine/ In my previous post, I covered the structure of a Backbone.js application using RequireJS. The next thing (or if you are a TDD fan, the first thing) we do is to run some tests on it. According to Coda Hale: Writing tests for your code may not reduce the number of bugs, but it will make fixing the bugs you inevitably f
:JasmineInit 現在ディレクトリから上に検索を開始し、 jsディレクトリが存在する階層にspecディレクトリを作成します。 specディレクトリ内にはjasmineのstandalone版に必要なファイル一式が揃っています :JasmineAdd ClassName specディレクトリ内に引数ClassNameのディレクトリを作成し、 index.html, test.jsを生成します。 後述するJasmineTemplateで生成されるファイルの形式を変更可能です。 ClassNameは省略可能であり、省略した場合、 現在のファイル名から拡張子を除いたものが指定されたことになります。 またjsファイル内に %JASMINE_TEST_PATH% の文字列が存在していた場合、テスト用jsファイルへのパスに置換されます。 :JasmineTemplate 生成されたspecディレ
Browser-based development can sometimes be a challenge when trying utilize code sharing (http://jamisondance.com/2012/6/21/browser-code-sharing-is-terribad/). Add in module loading, unit testing, and automation...and things get hairy. Until the community comes to a solution, this repo provides a boilerplate for getting up and running with AMD and unit test automation. Most of what is listed here i
目標はgrunt + phantomjs + jasmineの自動テスト環境 先日の大なごやJS Vol.3で、@_tk84さんが発表なさっていた、PhantomJSで自動テストにインスパイアされて、Gruntでそのあたりをコントロールできるようにしました。 今回のポイントは下記。 .coffeeを保存したら、.jsに自動でコンパイル .jsの更新を検知して、SpecRunner.htmlを自動生成 このとき更新された.jsと、対になるテストコードを含んだSpecRunner.htmlが生成される phantomjsで、SpecRunner.htmlを実行した結果を標準出力 出力をgrowlnotifyに渡してデスクトップ通知 @_tk84さんの元ネタのほうでは、EmacsとRubyな環境でしたが、自分はエディタには依存せず、nodeの実行環境だけで何とかできるように構成しました。 aho
本稿は、Sencha公式ドキュメントの Unit Testing with Jasmine の翻訳です。 I. 導入 このチュートリアルでは既存のExtアプリケーションを取り上げ、ユニットテストするJasmineアサーションライブラリを紹介します。 読者はJavaScript, Ext JS 4, MVCアーキテクチャ及びHTML, CSSの基本及びリソースの使い方について精通している人が対象です。 なぜテストするのか? アプリケーションをテストするには多くの理由があります。 テストはすべてのユースケースを手動で消し込んでゆくことなくアプリケーションの機能性を検証できます。 さらに、アプリケーションがリファクタリングやアップデートされる時に、 テストはそれらの変更がシステムに当たらしバグを呼び込まないように検証することが出来ます。 II. はじめに このチュートリアルではExtJSにバンド
Context The aim of the article is to describe a good workflow to use when developing web applications. I always read advice on good workflow practices but they are never aggregated together, that’s why I do it right now. UI Driven Development We are going to follow a Behavior Driven Development style. Moreover we are making a web application, so we decide to focus on user: we will start by writing
Update: If you are using Jasmine 2.0 or above, the information here is out of date! Please go to http://jasmine.github.io/2.0/introduction.html#section-Spies instead. Wanna be a spy fast? Well you are in luck! Just kidding! This is actually a cheatsheet for Jasmine Spies. See, while Jasmine itself is very intuitive to use, every time use spies I have to look up the docs. I would blame it on the po
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く