Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/webreflection/tressa
- Owner: WebReflection
- License: mit
- Created: 2017-01-17T13:36:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-29T14:46:53.000Z (over 6 years ago)
- Last Synced: 2024-12-31T15:12:34.531Z (18 days ago)
- Topics: assert, simple, testing, testing-tools
- Language: JavaScript
- Size: 344 KB
- Stars: 18
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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