Coder Social home page Coder Social logo

Comments (5)

StanleyGoldman avatar StanleyGoldman commented on July 29, 2024

I'm seeing the same issue as @i0natan. I'm not sure what the right fix is yet.

from jest-junit-reporter.

StanleyGoldman avatar StanleyGoldman commented on July 29, 2024

So I compared this to jest-html-reporter and I found that it has the same behavior.

I realized over time that I had a ... || true added to my test script to prevent the test script from failing if a testsuite failed to run, I realized that is my mistake. A testsuite failing to run is a critical error and my test script should fail as a result. The error message in that failure will tell me what testsuite failed.

from jest-junit-reporter.

michaelleeallen avatar michaelleeallen commented on July 29, 2024

Im not sure it is the responsibility of the test report formatter to alert you that your tests failed to run. This seems like it would be the responsibility of jest itself. In fact, jest provides a mechanism to ensure your test cases run as intended with expect.hasAssertions() (see https://facebook.github.io/jest/docs/en/expect.html#expecthasassertions). Also, there is expect.assertions(Number)(see https://facebook.github.io/jest/docs/en/expect.html#expectassertionsnumber)

from jest-junit-reporter.

StanleyGoldman avatar StanleyGoldman commented on July 29, 2024

Yea.. I dont think this is a bug

from jest-junit-reporter.

michaelleeallen avatar michaelleeallen commented on July 29, 2024

Closing this issue as it is not a bug with this module. See comment above for explanation.

from jest-junit-reporter.

Related Issues (4)

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.