bysabi / karma-tap-pretty-reporter Goto Github PK
View Code? Open in Web Editor NEWKarma plugin to report and prettify TAP test results
License: ISC License
Karma plugin to report and prettify TAP test results
License: ISC License
This line should be removed
https://github.com/bySabi/karma-tap-pretty-reporter/blob/master/index.js#L50
Can i see only failed tests?
My errors come up with: "Name of error at undefined". I assume undefined should be a file path. But I can't get it to work.
I use webpack and karma-sourcemap-loader. Anything special I need to configure?
I have karma configured with webpack and autoWatch
and disableStdout: false
; every time I make the first change to re-run the tests for the first time, the base reporter reports calls specFailure
, leading to an attempted push
to the Readable
stream.
Stack trace:
PhantomJS 2.1.1 (Linux 0.0.0) LOG: 'TAP version 13'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: '# TimeSlider is a React component'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: 'not ok 1 should be equal'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' ---'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' operator: equal'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' expected: true'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' actual: false'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' ...'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: 'not ok 2 plan != count'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' ---'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' operator: fail'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' expected: 2'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' actual: 1'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ' ...'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: ''
PhantomJS 2.1.1 (Linux 0.0.0) LOG: '1..2'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: '# tests 2'
PhantomJS 2.1.1 (Linux 0.0.0) LOG: '# pass 0'
Missing error handler on `socket`.
Error: stream.push() after EOF
at readableAddChunk (_stream_readable.js:157:17)
at Readable.push (_stream_readable.js:135:10)
at write (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma-tap-pretty-reporter/index.js:30:11)
at writeSuite (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma-tap-pretty-reporter/index.js:37:7)
at specFailure (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma-tap-pretty-reporter/index.js:76:5)
at onSpecComplete (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/lib/reporters/base.js:85:12)
at .<anonymous> (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/lib/events.js:13:22)
at emitTwo (events.js:106:13)
at emit (events.js:191:7)
at onResult (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/lib/browser.js:217:13)
at Socket.<anonymous> (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/lib/events.js:13:22)
at emitOne (events.js:101:20)
at Socket.emit (events.js:188:7)
at Socket.onevent (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/node_modules/socket.io/lib/socket.js:335:8)
at Socket.onpacket (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/node_modules/socket.io/lib/socket.js:295:12)
at Client.ondecoded (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/node_modules/socket.io/lib/client.js:193:14)
16 09 2016 02:29:32.772:DEBUG [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected during run, waiting 2000ms for reconnecting.
16 09 2016 02:29:34.774:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 times)
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
Disconnectedundefined
and then right after, the same error from Karma:
16 09 2016 02:29:34.780:ERROR [karma]: Error: stream.push() after EOF
at readableAddChunk (_stream_readable.js:157:17)
at Readable.push (_stream_readable.js:135:10)
at write (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma-tap-pretty-reporter/index.js:30:11)
at onRunComplete (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma-tap-pretty-reporter/index.js:99:5)
at .<anonymous> (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/lib/events.js:13:22)
at emitTwo (events.js:111:20)
at emit (events.js:191:7)
at Timeout._onTimeout (/home/sunnyg/gitdev/descarteslabs/widgets/node_modules/karma/lib/executor.js:51:17)
at tryOnTimeout (timers.js:232:11)
at Timer.listOnTimeout (timers.js:202:5)
16 09 2016 02:29:34.786:DEBUG [launcher]: Disconnecting all browsers
16 09 2016 02:29:34.819:DEBUG [launcher]: Process PhantomJS exited with code 0
16 09 2016 02:29:34.820:DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-65530249
16 09 2016 02:29:34.825:DEBUG [launcher]: Finished all browsers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.