# expressobdd

> Add basic multilevel describe/it bdd constructs to expresso

Latest version **1.0.2** (published 2013-06-11) · 0 weekly downloads

## Install

```sh
npm install expressobdd
pnpm add expressobdd
yarn add expressobdd
bun add expressobdd
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2013-06-11 |
| First published | 2011-02-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Eugene Ware |
| Maintainers | eugeneware |
| Keywords | expresso, expressobdd, bdd, test, testing, tests |

## Links

- npm: https://www.npmjs.com/package/expressobdd
- Repository: http://github.com/eugeneware/expressobdd
- npm.io page: https://npm.io/package/expressobdd

## Dependencies (2)

- [should](https://npm.io/package/should.md) >=0.0.4
- [expresso](https://npm.io/package/expresso.md) >=0.7.2

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2013-06-11
- 1.0.1 — 2011-02-11
- 1.0.0 — 2011-02-11

## README

# Adds simple BDD to the expresso TDD framework

This project adds a simple extension to the expresso framework which translates a nested "describe"/"it should" structure into a flattened object that expresso will run.

**expressobdd** includes the 'should.js' framework so you get access to the BDD 'should' style assertions without needing to explicitly include it.

# Usage

Here's an example of how to use **expessobdd** in a file in 'test/mytest.js':

	module.exports = require('expressobdd')({
		'a test group': {
			'test a': function() {
				var x = 3;
				x.should.eql(3);
			},

			'test b': function() {
				var y = 4;
				y.should.eql(4);
			},

			'another group': {
				'test c': function() {
					var x = 3;
					x.should.eql(3);
				},

				'test d': function() {
					var y = 4;
					y.should.eql(4);
				},
			},
		},

		'it should be a simple test': function() {
			var x = 2;
			x.should.eql(2);
		},
	});

Then you can run the test above by:
	$ expresso

# Installation

**expressobdd** is made available through the npm package system. To install just:

	$ npm install expressobdd

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