Giter Site home page Giter Site logo

Comments (4)

JeffML avatar JeffML commented on May 24, 2024

Might I also suggest preserving the state of the upper left toggles in local storage? It would be even better selection of success/failure/warning on the left side navigator would filter, also.

from mochawesome-report-generator.

adamgruber avatar adamgruber commented on May 24, 2024

I'm not sure I follow. The toggles already perform filtering. Are you referring to something else? Screenshot might help.

from mochawesome-report-generator.

JeffML avatar JeffML commented on May 24, 2024

from mochawesome-report-generator.

KasimAhmic avatar KasimAhmic commented on May 24, 2024

Apologies for bumping such an old issue, but I'm running into performance issues with Mochawesome and stumbled on this.

Currently, I'm at around a total of 6,700 tests and filtering is starting to be slow. It's not a huge problem at this very moment but my test suite is about to grow to well over 10,000 test cases and it will likely get worse from here.

One suggestion I have is to maintain the passed, failed, pending, and skipped tests in separate arrays and selectively render them based on the filters. I know that's not really what you're trying to do with the proposed CSS solution but it might be a way to avoid that.

In addition to the above, perhaps you might be able to "virtualize" the page. I've had massive success using Virtuoso when rendering large lists so maybe it also has a place here? There's obviously added complexity because you'd need to handle nested suites/tests and it probably would do nothing for people that had thousands of tests in a single suite unless you make the suite lists a fixed height, scrollable, and then virtualize them as well.

If I get the time, I'll see if I can put together a proof of concept.

from mochawesome-report-generator.

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.