Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sumanjs/karma-suman
Adapter for running Suman tests with the Karma test runner.
https://github.com/sumanjs/karma-suman
karma-framework karma-test-runner suman sumanjs unit-testing
Last synced: about 3 hours ago
JSON representation
Adapter for running Suman tests with the Karma test runner.
- Host: GitHub
- URL: https://github.com/sumanjs/karma-suman
- Owner: sumanjs
- License: mit
- Created: 2017-10-21T22:04:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-22T09:09:33.000Z (about 7 years ago)
- Last Synced: 2024-10-13T23:38:02.542Z (about 1 month ago)
- Topics: karma-framework, karma-test-runner, suman, sumanjs, unit-testing
- Language: JavaScript
- Homepage:
- Size: 205 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# karma-jasmine
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/karma-runner/karma-jasmine)
[![npm version](https://img.shields.io/npm/v/karma-jasmine.svg?style=flat-square)](https://www.npmjs.com/package/karma-jasmine) [![npm downloads](https://img.shields.io/npm/dm/karma-jasmine.svg?style=flat-square)](https://www.npmjs.com/package/karma-jasmine)[![Build Status](https://img.shields.io/travis/karma-runner/karma-jasmine/master.svg?style=flat-square)](https://travis-ci.org/karma-runner/karma-jasmine) [![Dependency Status](https://img.shields.io/david/karma-runner/karma-jasmine.svg?style=flat-square)](https://david-dm.org/karma-runner/karma-jasmine) [![devDependency Status](https://img.shields.io/david/dev/karma-runner/karma-jasmine.svg?style=flat-square)](https://david-dm.org/karma-runner/karma-jasmine#info=devDependencies)
> Adapter for the [Jasmine](http://jasmine.github.io/) testing framework.
## Installation
### Jasmine 1.3 ([docs](http://jasmine.github.io/1.3/introduction.html))
The easiest way is to run
```bash
$ npm install [email protected] --save-dev
```### Jasmine 2.0 ([docs](http://jasmine.github.io/2.0/introduction.html))
The easiest way is run
```bash
$ npm install karma-jasmine --save-dev
```__Note:__
Since `karma-jasmine 0.3.0` the jasmine library is no longer bundled with `karma-jasmine` and you have to install it on your own. You can simply do it by:```bash
$ npm install jasmine-core --save-dev
```## Configuration
```js
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],files: [
'*.js'
]
})
}
```If you want to run only some tests matching a given pattern you can do this in the following way
```bash
$ karma start &
$ karma run -- --grep=
```or
```js
module.exports = function(config) {
config.set({
...
client: {
args: ['--grep', ''],
...
}
})
}
```If you want to pass configuration options directly to jasmine you can do this in the following way
```js
module.exports = function(config) {
config.set({
client: {
jasmine: {
random: true,
seed: '4321',
stopOnFailure: true
}
}
})
}
```----
For more information on Karma see the [homepage].
[homepage]: http://karma-runner.github.com