Skip to content

A Karma plugin. Adapter for Tape testing framework.

License

Notifications You must be signed in to change notification settings

vigreco/karma-tape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-tape

Adapter for the tape testing framework.

Installation

$ npm install karma-tape --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['tape'],

    files: [
      'src/*.js',
      'test/*.js'
    ],

    reporters: ['spec'],
  })
}

Example

just write your tests without requiring tape

// var test = require('tape'); // no need to require tape

test('timing test', function (t) {
  t.plan(2);

  t.equal(typeof Date.now, 'function');
  var start = Date.now();

  setTimeout(function () {
      t.equal(Date.now() - start, 100);
  }, 100);
});

License

MIT


For more information on Karma see the homepage.

About

A Karma plugin. Adapter for Tape testing framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published