https://github.com/aadsm/mr-jasmine
Helper to run jasmine specs as mr modules
https://github.com/aadsm/mr-jasmine
Last synced: about 2 months ago
JSON representation
Helper to run jasmine specs as mr modules
- Host: GitHub
- URL: https://github.com/aadsm/mr-jasmine
- Owner: aadsm
- License: other
- Created: 2013-11-23T20:28:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-26T05:53:25.000Z (over 11 years ago)
- Last Synced: 2025-02-05T03:35:36.119Z (4 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Mr-Jasmine
==========
mr-jasmine allows you to create jasmine specs for (`mr`)[https://github.com/montagejs/mr] modules by letting you create specs that are `mr` modules themselves.Usage
=====
In your `SpecRunner.html`, instead of including `boot.js`, the source files and the spec files, you need to include `mr` and your own module that specifies which module specs to run.Change this
```html```
into this
```html```
The `test/specs` module that you provide is the place where you define all the specs modules to be run. In order to do that you use the `.run()` function provided by `mr-jasmine`:
`test/specs.js`
```javascript
require("mr-jasmine").run(require, [
"test/source-spec"
]);
```API Reference
=============
`run(require, specsModuleIds)` - run all specs defined by their module ids. `require` specifies the require to use to load the specs modules. `specsModuleIds` is the array of the module ids of the specs to run.Support
=======
* Jasmine 2.0.0