Skip to content

Commit

Permalink
Document that assertions and exceptions take precedence over assumptions
Browse files Browse the repository at this point in the history
Resolves #4084.
  • Loading branch information
marcphilipp committed Oct 22, 2024
1 parent 906a739 commit a993ed2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
*
* <p>In direct contrast to failed {@linkplain Assertions assertions},
* failed assumptions do not result in a test <em>failure</em>; rather,
* a failed assumption results in a test being <em>aborted</em>.
* a failed assumption results in a test being <em>aborted</em>. However,
* failed assertions and other exceptions thrown by tests take precedence over
* failed assumptions when both are thrown during the execution of a test
* (for example, by different lifecycle methods), regardless of the order they
* are thrown in. In such cases, the test will be reported as <em>failed</em>
* rather than <em>aborted</em>.
*
* <p>Assumptions are typically used whenever it does not make sense to
* continue execution of a given test method &mdash; for example, if the
Expand Down

0 comments on commit a993ed2

Please sign in to comment.