Comments (3)
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 theTEST_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.
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.
The problem has been fixed. Thank you for clarification guys!
from hermione.
Related Issues (20)
- Option resetCursor moves the cursor to the center of the screen HOT 2
- Methods of the object stored in hermione.ctx are not passed to the test HOT 9
- Некорректный тип функции `it(` HOT 4
- v9.0.0: Breaking changes
- Use Chrome's new Headless mode HOT 3
- Отсутствуют типы для метода moveCursorTo HOT 1
- Тесты на типы HOT 2
- Perform preliminary research and develop a solution for automatic API reference generation or typings
- moveCursorTo не идентичен moveTo в hermione 7 (move target out of bounds) HOT 5
- hermione.ctx нельзя типизировать HOT 4
- Not clear how to create wrapper and fail test with browser.mock HOT 2
- Add a handy way to screenshot the viewport
- В тесте недоступно поле browserId HOT 5
- Пропала типизация describe/it и т.п. HOT 2
- Preload the element completely before taking a screenshot
- Implement throttling of test commands
- Add ability to rerun all failed tests
- Update webdriverio package
- Вытащить наружу методы по работе с браузером HOT 4
- Add github-action for CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hermione.