Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/webreflection/tressa

Little test utility
https://github.com/webreflection/tressa

assert simple testing testing-tools

Last synced: 11 days ago
JSON representation

Little test utility

Awesome Lists containing this project

README

        

# tressa [![build status](https://secure.travis-ci.org/WebReflection/tressa.svg)](http://travis-ci.org/WebReflection/tressa)

A little test utility from [Andrea Giammarchi](https://twitter.com/WebReflection) and [Claudio D'angelis](https://twitter.com/daw985) born after [this post](https://medium.com/@WebReflection/js-vanilla-test-code-coverage-7b7ba3740776#.piaeqe6k3) and [this tweet](https://twitter.com/daw985/status/821280929276686336).

Compatible with NodeJS 0.8 and higher.

```js
var test = require('tressa');

test.title('My Library');

// synchronous
test(condition, 'optional comment');

// asynchronous
test
.async(done => {
setTimeout(() => {
test(condition, 'optional comment');
done();
});
})
.then(() => {
console.log("That's it!");
});
```

(C) 2017 MIT Style License