An open API service indexing awesome lists of open source software.

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

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