This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
= Flaky tests | ||
|
||
In a real life not all of your tests are stable and always green or always red. A test might start to "blink" i.e. it fails from time-to-time without any obvious reason. | ||
You could disable such a test, that is a trivial solution. However what if you do not want to do that? | ||
Say you would like to get more details on possible reasons or the test is so critical that even being flaky it provides helpful information? | ||
You have an option now to mark such tests in a special way, so resulting report will clearly show them as unstable: | ||
|
||
[source, java] | ||
---- | ||
@Flaky | ||
public void aTestWhichFailsFromTimeToTime { | ||
... | ||
} | ||
---- | ||
|
||
Here is what you get in the report in case if such test failed: | ||
+ | ||
image::flaky_failed.png[A failed test marked as flaky] | ||
|
||
Additional note - you could mark a whole test class as flaky as well. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.