Coder Social home page Coder Social logo

Comments (8)

idiotWu avatar idiotWu commented on June 9, 2024

If I use describe.skip to skip the specific tests in legacy browsers, instead I'll get the tests in red:

wx20170106-010844

Actually, they are executed in modern browsers, but the result is marked as if the tests haven't been run.

from karma-mocha-reporter.

4kochi avatar 4kochi commented on June 9, 2024

Is there a link to the repository so that we can run the tests ourselves?

from karma-mocha-reporter.

idiotWu avatar idiotWu commented on June 9, 2024

Sorry the repo is currently a private one, but I can give you an example code:

if (navigator.serviceWorker) {
  describe('Service Worker Tests', function() {
    it('should be presented', function() {
      // test code
    });
  });
}

describe('Other Tests', function() {
  it('should be presented too', function() {
    
  });
});

If you run this code with chrome, firefox and safari, you will only see Other Tests suite in outputs.

from karma-mocha-reporter.

idiotWu avatar idiotWu commented on June 9, 2024

@4kochi ah, I think I misunderstood what you meant...

I created a demo that reproduces this issue here: https://github.com/idiotWu/karma-mocha-reporter-demo. To run this demo, you need to have Chrome and Safari installed in your OS.

from karma-mocha-reporter.

4kochi avatar 4kochi commented on June 9, 2024

Thx, will have a look

from karma-mocha-reporter.

4kochi avatar 4kochi commented on June 9, 2024

Added a new option printFirstSuccess. When set to true you will see the reports. Will be released in the next version.

from karma-mocha-reporter.

4kochi avatar 4kochi commented on June 9, 2024

Released in v2.2.2

from karma-mocha-reporter.

idiotWu avatar idiotWu commented on June 9, 2024

Much thanks! Now it works like a charm!

from karma-mocha-reporter.

Related Issues (20)

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.