Comments (13)
@adam-lynch colortape
just adds colors to the input. Does it happen without colortape
?
from colortape.
No :/
from colortape.
Oh wait, this is happening on my Mac too even when the tests pass.
from colortape.
@adam-lynch Do you mean it works with tape
but not with colortape
? Do you mind providing a minimum verifiable code example?
from colortape.
@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.
- 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"
}
}
- 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.
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.
@kylegmaxwell Thanks for your report! Let me format outputs in your comments.
from colortape.
yeah, sorry, i noticed it came in as markdown, fixed now. thanks for the prompt notice
from colortape.
@kylegmaxwell Thanks! I will look at the tests when I arrive home.
from colortape.
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.
Should be fixed in 0.1.2.
from colortape.
I don't think I have it installed globally, but it works now, so thanks!
from colortape.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colortape.