Skip to content

Repository files navigation

TDDBC for JavaScript with Node.js

これは、TDDBCのNode.js向けプロジェクトです。

Documentation

動作環境

  • Node.js : 8以上

セットアップ

  • まずはじめに、プロジェクトをcloneしてください。
$ git clone https://github.com/tddbc/javascript-mocha.git
  • 次に、依存関係をダウンロードしてください。
$ npm install
  • 最後に、下記の様に表示されるか、確認してください。
$ npm test> javascript-mocha@0.1.0 pretest /path/to/projects/javascript-mocha
> npm run lint
> javascript-mocha@0.1.0 lint /path/to/projects/javascript-mocha
> eslint 'lib/**''test/**'> javascript-mocha@0.1.0 test /path/to/projects/javascript-mocha
> mocha --require intelli-espower-loader
Sample
.status
✓ は、trueであるべき
#say()
✓ は、"Hello TDDBC!"が返ってくるべき
2 passing (9ms)
$

コマンド

コマンド内容
npm testlint とテストをまとめて行います
npm run lintコードの静的検証を行います
npm run watchファイル変更を監視し、変更があったらテストを自動で行います

License

Copyright (c) 2013 TDD BaseCamp and other contributors

http://devtesting.jp/tddbc/

https://github.com/tddbc

Licensed under the MIT license.

About

skeleton for Node.js users.

Resources

Stars

8 stars

Watchers

21 watching

Forks

Releases

Packages

Used by

Contributors

Languages