#735 Removed throwing new AssertionFailedError when test failed #788
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Suggestion for: #735
My point is just throw an exception of what happend, because this annotation (in my opinion) is used to get rid of flaky tests (in api/e2e test especially). Or if it too flaky/broken, so we should fix it.
Thing what annoyed me in my practice, that when you try to make an allure report you'll have same fail issue (Which is not true) like "Test execution #3 (of up to 3 with at least 1 successes) failed ~ test fails - see cause for details"
And second is that you need to dive to previous exception/allure step to know what happened
So what do i mean. Here is how it works right now (without my PR)
Here how it'll work with mine PR
And that's how it'll work if we throw MultipleFailuresError instead AssertionFailedError. In my opinion it bloats fail message and when test failed you want to know cause. And if you want to know what retry it is you can just look at previous retry attempts
PR checklist
The following checklist shall help the PR's author, the reviewers and maintainers to ensure the quality of this project.
It is based on our contributors guidelines, especially the "writing code" section.
It shall help to check for completion of the listed points.
If a point does not apply to the given PR's changes, the corresponding entry can be simply marked as done.
Documentation (general)
.adoc
file in thedocs
folder, e.g.docs/report-entries.adoc
.adoc
file references demo insrc/demo/java
instead of containing code blocks as text.adoc
files)Documentation (new extension)
docs/docs-nav.yml
navigation has an entry for the new extensionpackage-info.java
contains information about the new extensionCode (general)
Code (new package)
module-info.java
module-info.java
Contributing
README.adoc
mentions the new contribution (real name optional)