ti-mocha

2019-09-11

ti-mocha是什么

什么是ti-mocha,Simple and reliable support for mocha testing with Appcelerator's Titanium SDK

ti-mocha使用教程帮助文档

appcelerator titanium">ti-mocha Appcelerator Titanium

Simple and reliable support for mochatesting with Appcelerator's TitaniumSDK.

Full Documentation and Samples

http://tonylukasavage.com/ti-mocha/

npm version">Quick Start NPM version

cd /path/to/Titanium/project && npm install ti-mocha --prefix ./node_modules

build statusbuilt with grunt">Contributing Build StatusBuilt with Grunt

  1. Install node.js.
  2. Install grunt: [sudo] npm install -g grunt-cli
  3. git clone https://github.com/tonylukasavage/ti-mocha.git && cd ti-mocha && npm install

Basic Build

grunt

This process will generate a new ./ti-mocha.jsfile based on the files in src, as well as the source mocha.js file found at ./node_modules/mocha/mocha.jsafter you execute npm install. See lib/build.jsfor details of the build process. Please note that nomodifications are made directly to the source mocha.js file.

Build for Different Version of Mocha

  1. Change version of mocha in the package.json devDependencies
  2. npm install
  3. grunt

Issues

Please report issues, new features/reporters, or requests in this repo's issue tracker. Bear in mind that this is a straight-up, minimal porting effort to make mocha work with Titanium. If you want additional features or functionality in mocha itself, please report them in the mocharepository.

License

Distributed under MIT License.


上一篇:grunt-titanium
下一篇:tio2
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部