Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azamara/mocha-jstd-adapter
Mocha JsTestDriver Adapter. Run Mocha tests on JSTD.
https://github.com/azamara/mocha-jstd-adapter
Last synced: about 2 months ago
JSON representation
Mocha JsTestDriver Adapter. Run Mocha tests on JSTD.
- Host: GitHub
- URL: https://github.com/azamara/mocha-jstd-adapter
- Owner: azamara
- Created: 2013-05-02T21:51:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-02T22:23:26.000Z (over 11 years ago)
- Last Synced: 2023-03-27T18:07:16.926Z (almost 2 years ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.BSD-new.txt
Awesome Lists containing this project
README
Mocha Adapter for [JsTestDriver][jstd]
========================================Author
------* Jan Prachař ([email protected])
Requirements
------------- [JsTestDriver (JSTD)][jstd]
- [Mocha][mocha] (browser version – [mocha.js][mocha.js])
- Any assertion library (e.g. [Chai][chai]: browser version – [chai.js][chai.js])Usage
-----Update your `jsTestDriver.conf` file (see [wiki page][jstd-conf] for more info) by prepending the Mocha and assertion library and the adapter's source files.
For example:
load:
- "lib/mocha.js"
- "lib/chai.js"
- "lib/MochaAdapter.js"
- "your_source_files.js"test:
- "your_test_files.js"Then you must setup Mocha and assertion library like for use in the browser, i.e. tell Mocha which interface you wish to use. A typical setup might look like the following.
mocha.setup('bdd');
expect = chai.expect;Directory Layout
----------------
- src: The adapter source code. Intent is to match interface with interface.
- src-test: The test files that verifies that the adapter works as intended.Changes
-------
* 1.0.0 – 2013-03-25 – Initial release[jstd]: http://code.google.com/p/js-test-driver
[jstd-conf]: http://code.google.com/p/js-test-driver/wiki/ConfigurationFile
[mocha]: https://github.com/visionmedia/mocha
[mocha.js]: https://github.com/visionmedia/mocha/blob/master/mocha.js
[chai]: https://github.com/chaijs/chai
[chai.js]: https://github.com/chaijs/chai/blob/master/chai.js