# coffee-scope

> A wonderful unit testing and mocking framework for Javascript and Coffeescript.

Latest version **0.0.9** (published 2012-04-11) · 0 weekly downloads

## Install

```sh
npm install coffee-scope
pnpm add coffee-scope
yarn add coffee-scope
bun add coffee-scope
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2012-04-11 |
| First published | 2012-04-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | cespare |

## Links

- npm: https://www.npmjs.com/package/coffee-scope
- npm.io page: https://npm.io/package/coffee-scope

## Recent versions

- 0.0.9 (latest) — 2012-04-11
- 0.0.8 — 2012-04-11
- 0.0.7 — 2012-04-10
- 0.0.6 — 2012-04-10
- 0.0.5 — 2012-04-10
- 0.0.4 — 2012-04-10
- 0.0.3 — 2012-04-07
- 0.0.2 — 2012-04-06

## README

scope.coffee
============

`scope.coffee` is a compact, modular Coffeescript/Javascript testing environment. It can be used from within a
node environment directly or in a browser. It is based on [shoulda.js](https://github.com/philc/shoulda.js)
and [scope](https://github.com/ooyala/scope). Other projects that deserve credit for inspiration include
[shoulda](https://github.com/thoughtbot/shoulda), [minitest](https://github.com/seattlerb/minitest),
[mocha](http://mocha.rubyforge.org/), and [rr](https://github.com/btakita/rr).

Features
--------

* Modular design -- only include the parts you want
* Simple test runner that can output results to screen with `console.log` or in pretty html
* Nested contexts to group tests and reuse setup/teardown blocks
* `setup_once` and `teardown_once` blocks to perform costly tasks no more than necessary
* `focus()` -- a simple method for only running the test you're working on in development
* A rich assertion set inspired by minitest's assertions
* A flexible mocking framework inspired by Mocha and rr

Usage
-----

TODO(caleb)

To Do
-----

* Real tests of all major functionality
* Add more assertions; split out extra assertions into separate file
* Split out mocks to a separate file
* Look into adding additional mocking functionality (spies and other doubles) if it makes sense
* Pretty HTML output

Credits
-------

* [philc](http://github.com/philc)
* [cespare](http://github.com/cespare)

---
_Source: https://npm.io/package/coffee-scope · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
