# @cookiescrumbs/case-coverage

> Extracts use case coverage from a projects cucumber features

Latest version **0.3.0** (published 2019-03-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @cookiescrumbs/case-coverage
pnpm add @cookiescrumbs/case-coverage
yarn add @cookiescrumbs/case-coverage
bun add @cookiescrumbs/case-coverage
```

Provides the command `case-coverage`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2019-03-06 |
| First published | 2018-12-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 176.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Steven James Cook |
| Maintainers | cookiescrumbs |

## Links

- npm: https://www.npmjs.com/package/@cookiescrumbs/case-coverage
- Repository: https://github.com/cookiescrumbs/case-coverage
- Issues: https://github.com/cookiescrumbs/case-coverage/issues
- npm.io page: https://npm.io/package/@cookiescrumbs/case-coverage

## Dependencies (4)

- [copy](https://npm.io/package/copy.md) ^0.3.2
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.3
- [cucumber](https://npm.io/package/cucumber.md) ^5.1.0
- [random-color-rgb](https://npm.io/package/random-color-rgb.md) ^1.1.1

## Recent versions

- 0.3.0 (latest) — 2019-03-06
- 0.2.0 — 2019-02-22
- 0.1.0 — 2019-02-17
- 0.0.5 — 2019-02-08
- 0.0.4 — 2019-02-08
- 0.0.3 — 2019-02-08
- 0.0.2 — 2019-02-07
- 0.0.1 — 2018-12-29

## README

<h1 align="center">Case Coverage</h1>
<p align="center">
  <b>Visual representation of your apps case coverage.</b>
</p>

<p align="center">
  <img src="/case-coverage-graph.png">
</p>

<br>

[![Build Status](https://travis-ci.org/cookiescrumbs/case-coverage.svg?branch=master)](https://travis-ci.org/cookiescrumbs/case-coverage)

## Description :
Extracts use case coverage from a projects cucumber features and creates a bubble graph.

This is a visual representation of the amount of features you've got in each domain of your app.
The size of the bubble represents the total number of scenarios in a domain, the x-axis is the number of automated and the y-axis is the number of manual tests.

## Installation

```bash
npm install @cookiescrumbs/case-coverage -g
```

You'll need cucumberjs installed to use this package.

```bash
npm install cucumberjs --save-dev
```

## Usage :

### Simple Example

Split your app into domains and tag your feature files with an appropriate `@tag`.
Scenarios can be tagged `@manual` or `@wip`. It's assumed the rest will be automated.
You'll need to add your domain tags to the case-coverage JSON file along with the location of the feature files.

````json
{
   "domains": [
       "encouraging-independent-study",
       "discovering-content",
       "live-lesson",
       "getting-insights-and-performance",
       "encouraging-independent-study",
       "class-management",
       "enrolment",
       "sign-up-and-sign-in",
       "onboarding"
   ],
   "featuresFolder": "./features"
}
````

````bash
case-coverage  "./case-coverage.json"
````

This package creates a `case-coverage` folder, containing the graph, inside the directory it is run in.

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