Content-Length: 192226 | pFad | http://b.hatena.ne.jp/arata3da4/Develop_nodejs/
I recently migrated all of our server side Node tests at Instinct from Vows to Mocha. I've been around the block with testing in Node, unable to find an approach that I really liked, until I started using Mocha. The elegant way it does async along with familiar BDD style syntax is really enjoyable to work with. It's made writing/maintaining our tests something I don't run from anymore. Two main re
JavaScript Advent Calendar 2011 (Node.js/WebSocketsコース) 12日目の記事です。 Node.js におけるテストフレームである、vows について書いてみました。 はじめに この記事では、README.md や 本家 Web サイトのドキュメントに載っていないことを主に書いています。 最新バージョンである 0.6.0 の vows を元に、おさらいした後、以下の3つについて説明します。 assert teardown sub-events 0. vows についておさらい vows は、Node.js 向けの RSpec のような BDD できるフレームワーク です。 vows は非同期なコードをテストするために作られたフレームワークとなっています。 インストール vows は npm を使って下記コマンドでインストールできます。 $ n
Source Code: lib/events.js Much of the Node.js core API is built around an idiomatic asynchronous event-driven architecture in which certain kinds of objects (called "emitters") emit named events that cause Function objects ("listeners") to be called. For instance: a net.Server object emits an event each time a peer connects to it; a fs.ReadStream emits an event when the file is opened; a stream e
Node.js 6連投. 第1弾! npm と Node.js 上で require を使ったモジュール読み込みの仕組みについてメモ <- いまここ Node.js 用に作った自作モジュール『merger』を npm で公開してみた Node.js 用の自作モジュールの作り方メモ Node.js 用に作った自作モジュールを npm に登録して公開する方法 JavaScript テストフレームワーク『Mocha』の使い方メモ JavaScript テストフレームワーク『Mocha』をブラウザ上で使う方法 Node.js で require でモジュールを読み込む際に引っかかった箇所があったのでメモしておきます. インストール済の hoge(仮)というモジュールを下記のようなコードで var hoge = require('hoge'); 読み込もうとしても Cannot find modul
Zombie.js Zombie.js is a headless browser which uses Node.js, NPM, a C++ compiler and Python. We can use Zombie.js with Behat’s MinkExtesion to make your BDD scenarios much faster. We have seen that we can also use Selenium, WebDriver, Sahi etc etc with MinkExtension. Here are few Benefits you can achieve using Zombie.js You don’t need browser so your tests become so fast. You don’t need to launch
Insanely fast, full-stack, headless browser testing using node.js View the Project on GitHub Download ZIP File Download TAR Ball View On GitHub Zombie.js Insanely fast, headless full-stack testing using Node.js Zombie 6.x is tested to work with Node 8 or later. If you need to use Node 6, consider using Zombie 5.x. The Bite If you’re going to write an insanely fast, headless browser, how can you no
Node.js6連投. 第5弾! npm と Node.js 上で require を使ったモジュール読み込みの仕組みについてメモ Node.js 用に作った自作モジュール『merger』を npm で公開してみた Node.js 用の自作モジュールの作り方メモ Node.js 用に作った自作モジュールを npm に登録して公開する方法 JavaScript テストフレームワーク『Mocha』の使い方メモ <- いまここ JavaScript テストフレームワーク『Mocha』をブラウザ上で使う方法 Node.js もしくはブラウザ上で動く JavaScript テストフレームワーク『Mocha』の使い方について書きます. 最近, JavaScript による大規模開発も増えてきました. それに比例して重視されてくるのが, テスト環境の構築です. そこで, node.js のテストフレーム
では、さっそくNode.jsを使ってみましょう。Node.jsの利用の仕方はとてもシンプルです。「スクリプトを書く」「コマンドで実行する」――これだけです。 既に述べたように、Node.jsのスクリプトは、JavaScriptを使います。といっても、Webページで使っているスクリプトとはかなり違いますので、慣れないとちょっとビビるかも知れません。とりあえず、スクリプトの中身は後回しにして、「書いて動かす」ということを体験してみましょう。 下のリスト欄に、ごくごく単純なスクリプトを掲載しておきました。テキストエディタを起動し、これを記述してから、適当な場所に適当なファイル名(ただし、拡張子は「.js」とする)で保存してください。とりあえずここでは、デスクトップに「node.js-sample」というフォルダを作り、この中に「sampleapp.js」という名前で保存した、という形で説明をして
node.js(v0.8.18)をCentOS6.3にインストールしたときに行った作業のメモです。 作業のほとんどがPythonのバージョンアップ作業でした。 1.Pythonを2.6.xから2.7.3へ node.js(v0.8.xx)はyumでインストールできるPython2.6.xではmakeできない。 (1) Pythonを2.7.3にするために必要なもののインストール $ sudo yum install gcc-c++ zlib zlib-devel tk-devel tcl-devel sqlite-devel ncurses-devel gdbm-devel readline-devel bzip2-devel db4-devel openssl-devel (2) Pythonのダウンロードと解凍 $ cd /tmp $ wget http://python.org/f
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く
Fetched URL: http://b.hatena.ne.jp/arata3da4/Develop_nodejs/
Alternative Proxies: