GithubHelp home page GithubHelp logo

Comments (13)

shuhei avatar shuhei commented on July 28, 2024

@adam-lynch colortape just adds colors to the input. Does it happen without colortape?

from colortape.

adam-lynch avatar adam-lynch commented on July 28, 2024

No :/

from colortape.

adam-lynch avatar adam-lynch commented on July 28, 2024

Oh wait, this is happening on my Mac too even when the tests pass.

screen shot 2014-12-13 at 11 56 02

from colortape.

shuhei avatar shuhei commented on July 28, 2024

@adam-lynch Do you mean it works with tape but not with colortape? Do you mind providing a minimum verifiable code example?

from colortape.

kylegmaxwell avatar kylegmaxwell commented on July 28, 2024

@shuhei I have the same problem. Tape works, but colortape does not. Here is a minimal example. The first test passes but is reported incorrectly by colortape. The second test fails and is incorrectly reported as a success by colortape.

Create a folder with two files.

  1. package.json
{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "test.js",
  "scripts": {
    "test": "tape test.js",
    "color": "colortape test.js"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "colortape": "^0.1.1",
    "tape": "^4.6.3"
  }
}
  1. test.js
'use strict';

var test = require('tape');

test('Simple test', function (t) {
    t.ok(true, 'This is true');
    t.end();
});

test('Advanced test', function (t) {
    Promise.resolve(true).then(function () {
        apple.orange;
        t.ok(true, 'This is true');
        t.end();
    }).catch(function (err) {
        t.ok(false, err);
        t.end();
    });
});

Then run 'npm test' to see tape's output and 'npm run color' to see the colortape output.

from colortape.

kylegmaxwell avatar kylegmaxwell commented on July 28, 2024

Sample output:

npm test

[email protected] test ~
tape test.js
TAP version 13
Simple test
ok 1 This is true
Advanced test
not ok 2 ReferenceError: apple is not defined
operator: ok
expected: true
actual: false
at: process._tickCallback (internal/process/next_tick.js:103:7)
1..2
tests 2
pass 1
fail 1
npm ERR! Test failed. See above for more details.

npm run color

[email protected] color ~
colortape test.js

TAP version 13
Simple test
ok 1 This is true
Advanced test
not ok 2 ReferenceError: apple is not defined
operator: ok
expected: true
actual: false
at: process._tickCallback (internal/process/next_tick.js:103:7)
TAP version 13

1..0
tests 0
pass 0
ok

from colortape.

shuhei avatar shuhei commented on July 28, 2024

@kylegmaxwell Thanks for your report! Let me format outputs in your comments.

from colortape.

kylegmaxwell avatar kylegmaxwell commented on July 28, 2024

yeah, sorry, i noticed it came in as markdown, fixed now. thanks for the prompt notice

from colortape.

shuhei avatar shuhei commented on July 28, 2024

@kylegmaxwell Thanks! I will look at the tests when I arrive home.

from colortape.

shuhei avatar shuhei commented on July 28, 2024

I confirmed that it actually happens with obally installed colortape bin. But somehow it doesn't happen with the repo's bin. I will investigate why.

from colortape.

shuhei avatar shuhei commented on July 28, 2024

Should be fixed in 0.1.2.

from colortape.

kylegmaxwell avatar kylegmaxwell commented on July 28, 2024

I don't think I have it installed globally, but it works now, so thanks!

from colortape.

shuhei avatar shuhei commented on July 28, 2024

Ah, yes, it could also happen when you have a different version of tape from colortape's.

from colortape.

Related Issues (6)

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.