# ishiko-test-framework

> A test framework for JavaScript

Latest version **1.0.16** (published 2017-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install ishiko-test-framework
pnpm add ishiko-test-framework
yarn add ishiko-test-framework
bun add ishiko-test-framework
```

## 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.16 |
| Published | 2017-09-03 |
| First published | 2017-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Xavier Leclercq |
| Maintainers | xleclercq |

## Links

- npm: https://www.npmjs.com/package/ishiko-test-framework
- Repository: https://github.com/ishiko-js/test-framework
- Homepage: https://github.com/ishiko-js/test-framework#readme
- Issues: https://github.com/ishiko-js/test-framework/issues
- npm.io page: https://npm.io/package/ishiko-test-framework

## Dependencies (1)

- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Recent versions

- 1.0.16 (latest) — 2017-09-03
- 1.0.15 — 2017-08-15
- 1.0.14 — 2017-08-15
- 1.0.13 — 2017-08-10
- 1.0.12 — 2017-07-30
- 1.0.11 — 2017-07-30
- 1.0.10 — 2017-07-30
- 1.0.9 — 2017-07-29
- 1.0.8 — 2017-06-24
- 1.0.7 — 2017-05-28
- 1.0.6 — 2017-05-25
- 1.0.5 — 2017-05-24
- 1.0.4 — 2017-05-20
- 1.0.3 — 2017-05-20
- 1.0.2 — 2017-05-20
- … 2 more at https://npm.io/package/ishiko-test-framework/versions

## README

# ishiko-test-framework

This project is a test framework for JavaScript.

    'use strict'

    var tf = require("ishiko-test-framework")

    // Create the test harness
    let theTestHarness = new tf.TestHarness("My First Test Suite")

    // Add a test sequence
    let numberTests = theTestHarness.appendTestSequence("Number tests")

    // Add the first test to the test sequence
    new tf.FunctionBasedTest(
        "Addition",
        function(resolve) {
            if ((3 + 2) == 5) {
                resolve(tf.TestResultOutcome.ePassed)
            } else {
                resolve(tf.TestResultOutcome.eFailed)
            }
        },
        numberTests)

    // Add a second test to the test sequence
    new tf.FunctionBasedTest(
        "Subtraction",
        function(resolve) {
            if ((3 - 2) == 2) {
                resolve(tf.TestResultOutcome.ePassed)
            } else {
                resolve(tf.TestResultOutcome.eFailed)
            }
        },
        numberTests)

    // Run the test suite
    theTestHarness.run()

## License

Copyright (c) 2017 Xavier Leclercq

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

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