# sise-restful-api-tests

> Tests for the SISE CWEB Project

Latest version **0.2.3** (published 2018-06-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install sise-restful-api-tests
pnpm add sise-restful-api-tests
yarn add sise-restful-api-tests
bun add sise-restful-api-tests
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2018-06-03 |
| First published | 2016-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | David Dias |
| Maintainers | daviddias |
| Keywords | SISE, CWEB, IST |

## Links

- npm: https://www.npmjs.com/package/sise-restful-api-tests
- Repository: https://github.com/diasdavid/sise-cweb-restful-api-tests
- Homepage: https://github.com/diasdavid/sise-cweb-restful-api-tests#readme
- Issues: https://github.com/diasdavid/sise-cweb-restful-api-tests/issues
- npm.io page: https://npm.io/package/sise-restful-api-tests

## Dependencies (3)

- [tape](https://npm.io/package/tape.md) ^4.6.3
- [wreck](https://npm.io/package/wreck.md) ^10.0.0
- [sise-db](https://npm.io/package/sise-db.md) 0.1.1

## Recent versions

- 0.2.3 (latest) — 2018-06-03
- 0.2.2 — 2016-12-20
- 0.2.1 — 2016-12-20
- 0.2.0 — 2016-11-21
- 0.1.0 — 2016-05-24
- 0.0.4 — 2016-05-23
- 0.0.3 — 2016-05-22
- 0.0.2 — 2016-05-05
- 0.0.1 — 2016-05-05

## README

sise-restful-api-tests
======================

[![](https://img.shields.io/badge/INESC-GSD-brightgreen.svg?style=flat-square)](http://www.gsd.inesc-id.pt/)
[![](https://img.shields.io/badge/TÉCNICO-LISBOA-blue.svg?style=flat-square)](http://tecnico.ulisboa.pt/)
[![](https://img.shields.io/badge/SISE-CWEB-brightgreen.svg?style=flat-square)](http://tecnico.ulisboa.pt/)

> SISE-RESTful-API tests for your project

# Usage

Install the module in your own project as a dependency

```sh
> npm install sise-restful-api-tests
```

Then create a `test.js` file with the following

```JavaScript
// Migrations Data
var migrations = require('../node_modules/sise-db/test/migrations.json')

// Your RESTful HTTP API implementation entry point
var api = require('../src/index.js')

// This are the tests that will be run
var test = require('sise-restful-api-tests').base

// Run the tests
test(migrations, api)
```

Then, run that script by doing

```sh
> node test.js
```

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