GithubHelp home page GithubHelp logo

tap-dev-tool's Introduction

tap-dev-tool

experimental

(Click for a live demo)

Prettify TAP output in Chrome/FireFox DevTools console. Works best with tape.

fail

Comes in the form of a Browserify plugin, so you don't need to change your source code during development. PRs for other integrations (Babel, Webpack) welcome.

Install

You can install with npm:

npm install tap-dev-tool --save-dev

Usage

NPM

browserify

The preferred way of using this is with a plugin during development. After installing, you can use it with browserify like this:

browserify index.js --plugin tap-dev-tool > bundle.js

Works well during development with watchify and budo.

require hook

If you don't want to use the plugin, you can require the tool somewhere at the start of your application.

require('tap-dev-tool/register')

var test = require('tape')

test('should do something', function (t) { 
  ...
})

See Also

License

MIT, see LICENSE.md for details.

tap-dev-tool's People

Contributors

mattdesl avatar

Stargazers

Scott J avatar Tobias Davis avatar Rubia Dias avatar Charlike Mike Reagent avatar Ernst Salzmann avatar Derek Reynolds avatar Athan avatar Douglas Correa avatar Rafael Rinaldi avatar Paul Serraino avatar J. Felix Etcetera avatar José Manuel Rosa Moncayo avatar Joshua Wiens avatar Fernando Araújo avatar Arnaud Rinquin avatar Jack Franklin avatar Nuno Campos avatar Maxime Parmentier avatar Tomek Wiszniewski avatar Mike Delucchi avatar Vincent Weevers avatar Avétis KAZARIAN avatar Talal Obeid avatar Pedro López Mareque avatar Dan Flettre avatar Yuya Saito avatar Hugh Kennedy avatar Yosh avatar Scott Corgan avatar

Watchers

Andor Salga avatar Miguel Moraleda avatar Max Rusan avatar Tomasz Dysinski avatar Mikko Haapoja avatar James Cloos avatar Scott Corgan avatar  avatar Mark McQuillan avatar Nick Poisson avatar  avatar Brendan Neufeld avatar Jeremias Menichelli avatar Marcelo Rodriguez avatar max avatar Felipe Vega avatar Chris avatar Guillermo Figueroa Mesa avatar  avatar  avatar Santiago D'Antuoni avatar  avatar

Forkers

vvo isabella232

tap-dev-tool's Issues

`npm install` fails

Is this a problem of npm or a broken publish?

$ npm install tap-dev-tool
# After a minute or two…
npm ERR! fetch failed https://registry.npmjs.org/tap-dev-tool/-/tap-dev-tool-1.3.0.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 503
# Retrying………

$ curl https://registry.npmjs.org/tap-dev-tool/-/tap-dev-tool-1.3.0.tgz
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>503 No healthy backends</title>
</head>
<body>
<h1>Error 503 No healthy backends</h1>
<p>No healthy backends</p>
<h3>Guru Mediation:</h3>
<p>Details: cache-fra1238-FRA 1441878566 2154005159</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>

I get the same error when trying to install [email protected] and @1.0. When installing Jam3/tap-dev-tool here’s what I get:

$ npm install Jam3/tap-dev-tool
npm ERR! fetch failed https://registry.npmjs.org/tap-console-parser/-/tap-console-parser-1.0.4.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 503

Other modules install fine:

$ npm install once
[email protected] node_modules/once
└── [email protected]

source maps

currently fudges source maps... will investigate

Detect a non-compatible browser?

Hi, I need to run my CSS tests in IE. It looks like they don’t support some standard for styled output. (What a surprise!):

Is it possible to detect if that standard is supported?

With lots of tests and at least one `setTimeout`, completes early in an error state

When I tested on a single file, tap-dev-tool was working fine, but as soon as I loaded up a number of tests and put setTimeout in one of them, tap-dev-tool won't read tests properly past that point.

This is the output in the console when this occurs:

Failing Tests: 0

⨯ not ok
  total:    null
  passing:  0
  failing:  0
  duration: 56 ms
ok 54 Timer started
ok 55 End time occurs after start time

1..55
# tests 55
# pass  55

# ok

I have confirmed when tap-dev-tool is disabled, the same issue does not occur. I'm using tape-catch through Webpack so that might have something to do with it. When running using tap-spec via PhantomJS, this issue also does not occur.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.