Git Product home page Git Product logo

Comments (3)

shadowusr avatar shadowusr commented on July 17, 2024

Hey!

Hermione failing due to an exception in a third-party plugin is intended behavior.

I've looked through related issues and your request, and discussed the matter with our team. We've arrived at the following conclusions:

  • Errors in third-party plugins should be handled within those plugins. I don't see any advantages in handling these errors in Hermione, since you should fix the errors in the plugin anyway.
  • Determining how tests that were running at the moment the exception was thrown, or tests that were scheduled to run afterward, should be displayed in the report is the reporter's responsibility. Hermione provides everything you need for this: you can access all tests via TestCollection in the AFTER_TESTS_READ event, and the TEST_BEGIN event is fired every time a test starts running.
  • Forcing test statuses to "failed" when a third-party plugin throws an exception is not a valid approach for several reasons. To name a few, this would break existing plugins that perform "smart" retries and plugins that gather statistics.
  • If you need Hermione to stop its execution while handling an error in your plugin, you may use the halt() function as described here.

I hope this helps. If you have any further questions, I'd be happy to answer them.

from hermione.

fortrest-jr avatar fortrest-jr commented on July 17, 2024

Forcing test statuses to "failed" when a third-party plugin throws an exception is not a valid approach for several reasons. To name a few, this would break existing plugins that perform "smart" retries and plugins that gather statistics.

To clarify: this isn't about the current issue, I suggested this behavior in other discussion. But surely we should handle it in a valid way.

from hermione.

epszaw avatar epszaw commented on July 17, 2024

The problem has been fixed. Thank you for clarification guys!

from hermione.

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.