# firescript-test

> Integration & Syntax tests for Firescript

Latest version **0.11.10** (published 2022-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install firescript-test
pnpm add firescript-test
yarn add firescript-test
bun add firescript-test
```

Provides the command `firetest`.

## 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.11.10 |
| Published | 2022-02-25 |
| First published | 2018-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 21.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andi Heinkelein |
| Maintainers | andifeind, kippis, firetux |
| Keywords | firescript, firescript test, firescript tests |

## Links

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

## Dependencies (11)

- [mocha](https://npm.io/package/mocha.md) ^9.2.1
- [colorfy](https://npm.io/package/colorfy.md) ^2.2.0
- [superfs](https://npm.io/package/superfs.md) ^1.1.2
- [logtopus](https://npm.io/package/logtopus.md) ^1.1.4
- [supercmd](https://npm.io/package/supercmd.md) ^1.2.0
- [supertime](https://npm.io/package/supertime.md) ^1.0.0
- [firescript](https://npm.io/package/firescript.md) ^0.20.4
- [inspect.js](https://npm.io/package/inspect.js.md) ^1.13.1
- [type-inspect](https://npm.io/package/type-inspect.md) ^2.0.5
- [lagoon-reporter](https://npm.io/package/lagoon-reporter.md) ^0.7.9
- [firescript-error](https://npm.io/package/firescript-error.md) ^1.1.4

## Recent versions

- 0.11.10 (latest) — 2022-02-25
- 0.11.9 — 2022-02-21
- 0.11.8 — 2021-11-09
- 0.11.7 — 2021-10-24
- 0.11.6 — 2021-10-11
- 0.11.5 — 2021-08-17
- 0.11.4 — 2021-08-13
- 0.11.3 — 2021-08-04
- 0.11.2 — 2021-07-28
- 0.11.1 — 2021-07-26
- 0.11.0 — 2021-07-25
- 0.10.18 — 2021-06-22
- 0.10.17 — 2021-03-01
- 0.10.16 — 2021-01-28
- 0.10.15 — 2020-12-20
- … 35 more at https://npm.io/package/firescript-test/versions

## README

Firescript test
===============

Test runner for unit and integration tests written in Firescipt or Javascript.

### Usage

```shell
firetest run [filePattern]
```

### Writing tests

Firetest looks for tests unter `tests/**/*.test.fire` or `tests/**/*.test.js` per default. Firetest tests are simply static classes which names are ending with `Test`

```js
export class MyFirstTest
  firstTest ()
    # place your test code here
    inspect('banana').isEql('banana')

  secondTest ()
    # fail a test by throwing an error
    throw Error('Test failed')
```

Write for each test a test method. The method name has to end with `Test`. For example `firstTest`, `secondTest` and so on. Methods which are not ending with `Test` are getting ignored by the runner.

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