Tape (JavaScript testing framework)
From EverybodyWiki Bios & Wiki
This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (January 2018) (Learn how and when to remove this template message) |
| Developer(s) | James Halliday aka substack |
|---|---|
| Initial release | November 25, 2012 |
| Stable release | 4.6.2
/ 2016-09-30 |
| Written in | JavaScript |
| Engine | |
| Operating system | Cross-platform |
| Type | Unit Test |
| License | MIT License |
| Website | https://github.com/substack/tape |
Search Tape (JavaScript testing framework) on Amazon.
Tape is a tap-producing test harness for Node and browsers requiring few APIs[1] It can be used for unit and integration testing.[2] Tests are code, so you can run tests as modules with Node[3]
Usage
Example of a passing test.[4]
import test from 'tape';
test('A passing test', (assert) => {
assert.pass('This test will pass.');
assert.end();
});
test('Assertions with tape.', (assert) => {
const expected = 'something to test';
const actual = 'sonething to test';
assert.equal(actual, expected,
'Given two mismatched values, .equal() should produce a nice bug report');
assert.end();
});
See also
References
- ↑ "tape". Retrieved 5 March 2017.
- ↑ "JavaScript Testing: Unit vs Functional vs Integration Tests". 25 April 2016. Retrieved 5 March 2017.
- ↑ MacWright, Tom. "TAP & Tape, the awesome way to test JavaScript". Retrieved 5 March 2017.
- ↑ "Why I use Tape Instead of Mocha & So Should You – JavaScript Scene". 13 July 2015. Retrieved 5 March 2017.
External links
| This programming-tool-related article is a stub. You can help EverybodyWiki by expanding it. |
This article "Tape (JavaScript testing framework)" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Tape (JavaScript testing framework). Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
