Coder Social home page Coder Social logo

karma-summary-reporter's People

Contributors

bwendt-mylo avatar dependabot[bot] avatar ih8 avatar leobalter avatar squarebracket avatar sth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

karma-summary-reporter's Issues

Multiple tests with same suite and description is not reported

describe('truthy-tests', () => {
  it('should be truthy', () => { expect(true).toBeTruthy(); });
  it('should be truthy', () => { expect(1).toBeTruthy(); });
});

Will output that 1 test cases successful in all browsers, despite it being two successful tests. It seems like only the first test is being reported, and if you have more they are disregarded.

The problem can be found here: https://github.com/sth/karma-summary-reporter/blob/master/index.js#L45

[Feature request] Add an option to mute console logs

I use karma-summary-reporter together with karma-spec-reporter as you suggest. Unfortunately both the reporters print messages produced by console.log() calls in tests, therefore the console messages are duplicated.

Since your reporter is designed for summary, I request an option to mute the live process logs to solve the duplications.

Print error details

If something goes wrong you can only see the x that indicates a failed test. However, in other reporters a useful detail is printed, e.g. Expected false to be true if you have the following code (Jasmine):

it("should xxxxx", function () {
    expect(false).toBe(true);
});

If you have multiple expect statements e.g. inside a it(...) block then this gives the necessary information which of them failed.

I would like to see this in this reporter too.

Upgrade Karma dependency to 3.x

When I upgraded my project's karma from 2.x, yarn reported the below warning. The reporter seems to run fine with Karma 3 but there is a deprecated method warning.

[email protected]" has incorrect peer dependency "karma@^1.2.0 || 2.x"

Typescript compile errors hidden

Hey, I'm not sure if this is effectively a duplicate of the previous discussions about printing errors, but wanted to raise it because I had a tough time tracking down the cause.

I was using this on an angular project and if there's a typescript compilation error, the output from Karma is that it can't connect to Chrome. This makes sense in hindsight because the bundle wasn't able to be built but wasn't obvious since usually the TS errors are visible.

e.g. this is the output from a basic angular project (generated with ng new) with a small typescript error added. The second is with the summary reporter added.

tserror

hiddenerror

Hide successful test results

Add an option to hide successful tests. Currently all test results are displayed always. In real test suits this isn't too useful.

Also add an additional option to ignore skipped tests.

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.