You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
7 years ago | |
|---|---|---|
| .vscode | 7 years ago | |
| assets | 7 years ago | |
| browser | 7 years ago | |
| es5 | 7 years ago | |
| sample | 7 years ago | |
| scripts | 7 years ago | |
| src | 7 years ago | |
| .eslintignore | 7 years ago | |
| .eslintrc.js | 7 years ago | |
| .gitignore | 7 years ago | |
| .npmignore | 7 years ago | |
| DOCUMENTATION.md | 7 years ago | |
| LICENSE | 7 years ago | |
| README.md | 7 years ago | |
| Runner.js | 7 years ago | |
| Strategy.js | 7 years ago | |
| index.js | 7 years ago | |
| package.json | 7 years ago | |
| shrinkwrap.yaml | 7 years ago | |
README.md
Gunner

Tiny, but fully loaded.
Gunner is a zero magic, fast test-runner and assertion framework. There are no magic globals or CLI specific interface.
Requirements & Usage
Gunner uses very modern JavaScript, and hence requires node 10+ ❗️⚠️ currently.
Create a new Gunner instance and simply write your tests. The assertion methods are passed in as the callback as an expect object to the test function.
const { Gunner, expect } = require('@klenty/gunner');
// Create new instance
const gunner = new Gunner();
// Define tests
gunner.test('arrays are equal', () => {
return expect([1, 2,]).deepEqual([1 ,2]);
});
// Starts the runner
gunner.run();
Documentation
-
Class: -
Methods: -
Constants:-
[Gunner.Start] -
[Gunner.End]
-
-
State and Advanced Usage
Credits
Gunner was built by Muthu Kumar (@MKRhere) at Klenty, a sales automation startup.