You can edit almost every page by Creating an account and confirming your email.

Tape (JavaScript testing framework)

From EverybodyWiki Bios & Wiki

Tape
Developer(s)James Halliday aka substack
Initial releaseNovember 25, 2012; 13 years ago (2012-11-25)
Stable release
4.6.2 / 2016-09-30
Written inJavaScript
Engine
    Operating systemCross-platform
    TypeUnit Test
    LicenseMIT License
    Websitehttps://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

    1. "tape". Retrieved 5 March 2017.
    2. "JavaScript Testing: Unit vs Functional vs Integration Tests". 25 April 2016. Retrieved 5 March 2017.
    3. MacWright, Tom. "TAP & Tape, the awesome way to test JavaScript". Retrieved 5 March 2017.
    4. "Why I use Tape Instead of Mocha & So Should You – JavaScript Scene". 13 July 2015. Retrieved 5 March 2017.

    External links


    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.