3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

node-easymockの環境設定

Posted at

node-easymockとは

用途

  • クライアント - サーバ開発でクライアントを先行する場合
  • クライアント内でサーバからの返り値を利用したテストの作成
  • json形式も対応

手順

  1. cloneします

git clone https://github.com/CyberAgent/node-easymock.git
2. node-easymockディレクトリ内で下記コマンドを実行します

npm install -g easymock
3. ダミーデータの作成
node-easymockディレクトリ内にusers-get.jsonを作成
4. easymockの実行
easymock
5.動作確認
ブラウザで以下にアクセス
http://localhost:3000/users

ハマった点

  • nodeが0.10では動作せず、0.9を入れたら動作した。
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?