Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

👯 The most human-friendly TAP reporter.

License

NotificationsYou must be signed in to change notification settings

axross/tap-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

The most human-friendlyTAP reporter.

Screenshot

Screenshot

How to use

You can use tap-diff in the same way as otherTAP reporters.

npm install -g tap-diff
tape ./*.test.js | tap-diff

tap-diff useschalk for adding color, which automatically detectscolor terminals. If you're piping the output and want to force color:

FORCE_COLOR=t tape ./*.test.js | tap-diff

Or use withcreateStream():

'use strict'consttest=require('tape')consttapDiff=require('tap-diff')test.createStream().pipe(tapDiff()).pipe(process.stdout)test('timing test',(t)=>{t.plan(2)t.equal(typeofDate.now,'function')varstart=Date.now()setTimeout(()=>{t.equal(Date.now()-start,100)},100)})

License

MIT

About

👯 The most human-friendly TAP reporter.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp