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
nodeのアプリケーションに対するテストをmochaで書いていて、railsのアプリケーションに対するテストをrspecだとこう書くけどこれはmochaではどうすればいいのだろう、というのが幾つかあったので書き留めておきます。今回解説に使うコードは全てgithubにあるので、そちらも参考にして下さい。 今回テストの対象となるアプリケーションは以下の様なものです: socket.ioを使ってユーザ間でメッセージのやり取りが出来る ユーザは、最初にサーバに接続した歳にユーザ名を含んだjsonをサーバに送り、サーバはそのjsonを受け取ったらそのユーザ名をredisに書く それ以降は、ユーザはユーザ名とメッセージを含んだjsonをサーバに送り、サーバはそのjsonを受け取ったら他の全てのユーザにそのjsonを送る それでは早速解説していきます。 テストファイルの名前 テストを実行するのには、mo
SinonJSDoc 1.0 Welcome to Sinon.JS Documentation.¶ Contents:¶ 各Sinon.JSファイル¶ sinon.js sinon/spy.js sinon/stub.js sinon/mock.js sinon/collection.js sinon/assert.js sinon/sandbox.js sinon/test.js sinon/test_case.js sinon/match.js sinon/util/event.js sinon/util/fake_server.js sinon/util/fake_server_with_clock.js sinon/util/fake_timers.js sinon/util/fake_xml_http_request.js sinon/util/timers_ie.js sin
Yeti 0.2.9 delivers 3 new features for your testing enjoyment: Configurable query string. Configurable timeout. Provide YUI Test Coverage results. Plus, quite a few bugfixes & smaller enhancements. Install now You can install the latest Yeti with one command: npm install -g yeti Query string parameters You can specify query string parameters to add to your test URLs. This can be used to pass infor
Yeti 0.2.8 provides an all-new feedback line during test runs. Instead of a new line of feedback from every passing file, you now get a single summary line that keeps you updated on how much progress your test batch has made. Additionally, Yeti has removed its dependency on director, plates, and union. Upgrade now You can install the latest Yeti with one command: npm install -g yeti Less dependenc
Today I’m releasing Yeti 0.2.7, which correctly returns connected browsers to the capture page if you decide to cancel a test run. This is really useful when you notice test failures and want to save time by canceling before the batch is complete. Upgrade now You can install the latest Yeti with one command: npm install -g yeti Parallel testing coming soon Yeti 0.2.7 prefers to identify browsers b
CoffeeScript is one of the most exciting new technologies to emerge in web development. With CoffeeScript you can write sexier, more consistent and sturdier code. It also brings with it heavier focus on unit testing; a brilliant way of ensuring your code is well designed and behaves exactly as it should do. CoffeeScript’s sleek syntax and succinct style lets you write tests in a faster, more effic
JS Days 2025 Replays are now live! Watch all sessions on-demand Watch Now One of the first questions I always hear when starting with a new client is “How can I build unit tests for my application?” It’s obvious that many people understand the benefits of unit tests—developers want to minimize the number of bugs in their code and managers want to reduce the amount of time required to test an appli
July 29, 2012 9:27 am You are here:Home javascript Sinon.JS 0.6.0 – Fake XMLHttpRequest and improved test framework integration Sinon.JS 0.6.0 is out and it features a new FakeXMLHttpRequest object and a high-level interface for testing xhr-dependent code along with improvements to sinon.sandbox and sinon.test. Warning: Slightly long, but thorough post. Short version is in the currently basic API
目標は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
I am a little framework averse. When I write a program, I like to build from scratch as far as it is practical. Not using a framework gives me the feeling that I am so in control of my own destiny. But having said that, I will sometimes succumb to using a framework when it's very clear that the use of the framework will result in significantly less code, and/or significantly less complexity I rece
久久亚洲a片com人成,久久狼人大香伊蕉国产,国产av无码一区二区三区,午夜福利福利一区二区,欧美精品亚洲精品日韩专区,中文亚洲欧美日韩无线码,青青青免费国产在线91,久久av男人的天堂综合,日本三级韩国三级孕妇,最新中文字幕av无码专区不卡,欧美大屁股肥妇在线视频
アーカイブ開いてREADME的なもの探しても無いし、Webkitのサイトやその周りにも載って無いしでよくわからない、ので調べてみた。ウェブブラウザに搭載されているJavaScript処理系がどんだけやれんのか叩き出してくれるアレです。 http://www2.webkit.org/perf/sunspider-0.9/sunspider.html 3d-cube 元ネタはここ。 前版よりパフォーマンスが落ちるバグの確認の為のコンテンツだったらしい。 回転する立方体の3Dレンダリング。 3d-morph Apple謹製。元ネタはここ?。メッシュ変換。…というのが何を指すのか飲み込めていません。 3d-raytrace Apple謹製。レイトレーシングとも言われる、光の当たり方を視線から追っていく像を描く手法。アルゴリズムは単純ながら、膨大な計算量が必要とされる為、Benchmarkにはもって
== 1.4.0 / 2012-07-09 * Argument matchers (Maximillian Antoni) sinon.match.{any, same, typeOf, instanceOf, has, hasOwn, defined, truthy, falsy} as well as typeOf shortcuts for boolean, number, string, object, function, array, regexp and date. The result of a call can be used with spy.calledWith. * spy.returned now works with matchers and compares objects deeply. * Matcher assertions: calledWithMat
This document provides a tutorial for W3C's test framework, known as testharness.js, which you can download from its GitHub repository. This tutorial does not assume that you are necessarily familiar with other test frameworks, but it does expect you to be reasonably proficient with JavaScript (since JavaScript APIs is what one tests using this). If you are familiar with other test frameworks such
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く