# @mariosant/t

> A simple minimal test runner, that embraces a functional testing approach.

Latest version **0.0.5** (published 2018-04-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mariosant/t
pnpm add @mariosant/t
yarn add @mariosant/t
bun add @mariosant/t
```

Provides the command `t`.

## 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.0.5 |
| Published | 2018-04-22 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marios Antonoudiou |
| Maintainers | mariosant |
| Keywords | test |

## Links

- npm: https://www.npmjs.com/package/@mariosant/t
- npm.io page: https://npm.io/package/@mariosant/t

## Dependencies (5)

- [p-all](https://npm.io/package/p-all.md) ^1.0.0
- [ramda](https://npm.io/package/ramda.md) ^0.25.0
- [globby](https://npm.io/package/globby.md) ^8.0.1
- [commander](https://npm.io/package/commander.md) ^2.15.1
- [p-timeout](https://npm.io/package/p-timeout.md) ^2.0.1

## 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
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2018-04-22
- 0.0.4 — 2018-04-22
- 0.0.3 — 2018-04-21
- 0.0.2 — 2018-04-19

## README

# t
[![npm version](https://badge.fury.io/js/%40mariosant%2Ft.svg)](https://badge.fury.io/js/%40mariosant%2Ft) [![Build Status](https://travis-ci.org/mariosant/t.svg?branch=master)](https://travis-ci.org/mariosant/t)

A simple minimal test runner, that embraces a functional testing approach.

## Installation

Install it to your project with:

```
$ npm i @mariosant/t
```

You can then execute it like:

```
$ npx t
```

## Usage

t focuses on minimality. Tests are files that export a function. Here is a sample one

``` javascript
// let's call this file index.test.js
const {equal} = require('bring-your-assertion-library')
const someModule = require('./some-module')

module.exports = () => equal(someModule.color, 'red')
```

If you need async:

``` javascript
const {equal} = require('bring-your-assertion-library')
const someModule = require('./some-module')

module.exports = async () => {
	const color = await someModule.fetchAsyncColor()
	equal(color, 'red')
}
```

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