Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shikaan/titef

🌠 A tiny, lightning-fast, zero-dependecies JavaScript test framework 🌠
https://github.com/shikaan/titef

ava framework javascript jest library mocha small test zero-dependency

Last synced: 5 days ago
JSON representation

🌠 A tiny, lightning-fast, zero-dependecies JavaScript test framework 🌠

Awesome Lists containing this project

README

        


Titef logo


🌠 A tiny, lightning-fast, zero-dependecies JavaScript test framework 🌠



Build Status


npm version

### 🎯 Why you should use it?

⚡ Unbelievably fast (check it [here](https://shikaan.github.io/titef/performance/))

👌 ~2.9Kb (gzipped) of whatever you need in most of the cases

🏄 Close-to-zero migration effort from Mocha, Jasmine, Jest;

📖 Lots of docs make it user and contributor friendly

## 📥 Installation

```bash
npm install --save titef
```

## 👓 Usage

```bash
npx titef test/awesome.specs.js
```

Older npm:

```bash
node_modules/.bin/titef test/awesome.specs.js
```

## 👣 Getting started

Your first test file

```javascript
// test.js

const assert = require('assert');

const truthy = () => true;

suite('truthy', () => {
spec('should return true', () => {
assert.ok(truthy());
});

spec('should not return false', () => {
assert.notDeepEqual(truthy(), false);
});
});
```

Your first test run

```bash
$ npx titef ./test.js
```

For further information about writing and running tests in Titef
take a look at
[Titef: Recipes](https://shikaan.github.io/titef/recipes/) to
get up and running in no time.

## 🎁 Contributing

Contributors are well welcomed!

[Here](./.github/CONTRIBUTING.md) you'll find all the information you
need to start to get going. A small preview:

- [API docs](https://shikaan.github.io/titef/api/)
- [developer documentation](https://github.com/shikaan/titef/blob/master/README.md)