atom-mocha
Run Atom specs using bleeding-edge Mocha and Chai.
Last updated 10 months ago by alhadis .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install atom-mocha 
SYNC missed versions from official npm registry.

Atom-Mocha

Build status: TravisCI Build status: AppVeyor Latest package version

Run package specs in Atom using Mocha and Chai.

Preview

Installation

Run npm install atom-mocha --save-dev in your package's directory.

If nothing's happening:

  • Check your package.json file contains "atomTestRunner": "atom-mocha"
  • Atom may have cached your package's metadata. Refresh it by quitting and restarting the program.

If you're still experiencing difficulties, please file an issue.

Configuration

To pass options to Mocha, place a .mocharc.{js,json,yml} file in your package's base directory. (or in your specs folder, whichever you prefer). Alternatively, you can use package.json's "mocha": property instead:

{
	"mocha": {
		"bail": true,
		"ui": "bdd"
	}
}

For details on Mocha's configuration settings, consult their documentation. Options specific to this spec-runner are described in depth here.

Reminders

  • Chai's expect function is automatically globalised for you.
  • Nifty extras are available to help with writing tests.
  • Reload the spec-runner window by pressing <kbd>Ctrl/Cmd + R</kbd>.
  • Tests can be batch-toggled by <kbd>Alt</kbd>-clicking their title.

Current Tags

  • 2.2.1                                ...           latest (10 months ago)

19 Versions

  • 2.2.1                                ...           10 months ago
  • 2.2.0                                ...           a year ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.7                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 14
Last Day 0
Last Week 2
Last Month 14
Dependencies (5)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |