Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 🌠
- Host: GitHub
- URL: https://github.com/shikaan/titef
- Owner: shikaan
- License: mit
- Created: 2018-01-07T10:34:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T02:18:27.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T16:06:55.086Z (about 1 month ago)
- Topics: ava, framework, javascript, jest, library, mocha, small, test, zero-dependency
- Language: JavaScript
- Homepage: https://shikaan.github.io/titef/
- Size: 1.15 MB
- Stars: 18
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
🌠 A tiny, lightning-fast, zero-dependecies JavaScript test framework 🌠
### 🎯 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.jsconst 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)