suite.js makes it easy to test various truths related to a function given to it. It comes with a several utilities that support common use cases.
suite.js is available under MIT. See LICENSE for more details.
Minimalistic testing tool for Node. Supports generative tests (aka QuickCheck). (MIT)
License: MIT License
suite.js makes it easy to test various truths related to a function given to it. It comes with a several utilities that support common use cases.
suite.js is available under MIT. See LICENSE for more details.
Just like bunit, suite.js should work in Browser too.
Since annofuzz
deals with that now, no need to have it here as well.
There should be a way to test exception. Likely the nicest way to do this is to piggyback on the existing syntax and implement a wrapper that assert the exception was triggered. Example:
suite(func, [
1, exception(AssertionError),
'foo', 'foo'
]);
Now async tests just call done
callback (last param). It might be nice to have some alternatives.
I think the syntax might need some work as well. I'm not too happy about the async flag. Instead I think something like this would look nicer:
suite(async(func), [
1, 1,
'foo', 'foo'
[[1, 2, 3]], [1, 2, 3]
]);
Implementation-wise async
helper is just a function that returns a function that returns the passed value. It also attaches some metadata (a property) to the function that marks the testcase as an async one. The test runner is then able to use this data.
This looks nicer but still might not be ideal.
The tool should output TAP compatible stream. Use "tap-render" for this purpose.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.