Coder Social home page Coder Social logo

mocha-unfunk-reporter's People

Contributors

bartvds avatar bitdeli-chef avatar geekdave avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mocha-unfunk-reporter's Issues

Fix custom stacktrace indent

Do not left-trim the stack-trace:

For example: when using for Q.longStackSupport promises the From previous event:-line should be on different indent level then the at's:

         at Function.assert.jsonOf (index.js:105:40)
         From previous event:
         at Context.<anonymous> (API.ts:101:7)

Add string diff support

Should be doable without colors with a multi-line format:

Hello        world today
||||||-------|||||++++++
Hello lovely world

Can you please give instructions on how to add this reporter, if we are using mocha without grunt

Hi,

I am adding mocha to the index.html page. and include test scripts to that page..
and use mocha or mocha-phantomjs to run the test by giving index.html as input.

Can you please let me know how to include your reporter in this kind of setup.

I added the unfunk.js to the html page --- complained about requirejs
Added requireJS to the htmlpage -- error : Module name "jsesc" has not been loaded yet for context: _. Use require([])
jsesc is in the nodemodules folder.

Girish

Use the http url in repository

you currently have

grit://github.com/Bartvds/mocha-unfunk-reporter.git (git)

use the http address

https://github.com/Bartvds/mocha-unfunk-reporter.git

Change process.env variables to legal bash identifiers

Setting options through process.env['mocha-unfunk-<option_name>'] is very unpractical, since environment variables in bash can only contain letters, numbers and underscores. Dashes are not allowed.

I would change it to MOCHA_UNFUNK_STYLE for example.

Add compatibility layer

Seriously, it is a huge mess out there.

Consider dropping support for everything that is not on the level with Chai.

Or write a use-activated compatibility layer that can restore some of the dmaaged assertion errors.

Chai, Proclaim, Must, Expect, Should, CommonJS/Node.

Update readme.md

Update grunt-mocha note (as my fix is merged)

Update screenshots (with string/objects diff demo)

Support mocha's --reporter-options flag

$ mocha --reporter mocha-unfunk-reporter --reporter-options foo=bar

constructor will get args runner and options object, which contains a reporterOptions hash.

constructor(runner, options) {
    console.log(options.reporterOptions);
}

// => { foo: 'bar' }

Will start working on implementing this, but wanted to track it here. ๐Ÿ‘

Filter top and bottom of stack filter

Filter from both sides in.

Separately configurable because 'top' is important for debugging custom assertion stuff.

Careful with promises and other odd constructs (chai-as-promised / mocha-as-promised)

Karma Supporter

Hey Gang

Is there a method for integrating this reporter with Karma?

Add "Dot" substyle

Add a submodule or config mode for compacter display of passing tests.

Similar to the default 'Dot' reporter

String diff per word instead of char

Per-char gives less usable results, like this dangling 'e':

  My Message: actual-value: expected 'test/fixtures/non-existing.txt'
  ||||||||||||-----------|---||||||||||||||||||||||||||||||||||||||||
  My Message:            e   xpected 'test/fixtures/non-existing.txt'

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.