You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggested addition to the YAML config api (at the root level of the file, i.e. not under a path):
number_of_retries: 1# default 0
This value will determine the number of times Wraith will take a fresh screenshot if one of the paths in your file generates an unacceptable diff. For example, you might visit /foo and take a screenshot but the server was under strain and unable to deliver your CSS stylesheet in time, thereby failing your Wraith test. With number_of_retries set to n, Wraith will take the screenshot again and again, either until the test passes (Wraith succeeds) or until n has been reached (Wraith fails).
Random one-offs do happen. The web isn't perfect. Servers can be slow, or down, as can our client internet connection. We use Wraith to test that our application renders consistently while we make changes to the code - we DON'T use Wraith to test the integrity of our servers. That's better suited to load testing.
You might run a Wraith test and 9/10 times it will pass, but occasionally it won't. It's very frustrating for a 30-minute CI build to fail because of one path, on one environment, at one screen size, having a momentary hiccough.
The text was updated successfully, but these errors were encountered:
Suggested addition to the YAML config api (at the root level of the file, i.e. not under a
path
):This value will determine the number of times Wraith will take a fresh screenshot if one of the paths in your file generates an unacceptable diff. For example, you might visit
/foo
and take a screenshot but the server was under strain and unable to deliver your CSS stylesheet in time, thereby failing your Wraith test. Withnumber_of_retries
set ton
, Wraith will take the screenshot again and again, either until the test passes (Wraith succeeds) or untiln
has been reached (Wraith fails).Random one-offs do happen. The web isn't perfect. Servers can be slow, or down, as can our client internet connection. We use Wraith to test that our application renders consistently while we make changes to the code - we DON'T use Wraith to test the integrity of our servers. That's better suited to load testing.
You might run a Wraith test and 9/10 times it will pass, but occasionally it won't. It's very frustrating for a 30-minute CI build to fail because of one path, on one environment, at one screen size, having a momentary hiccough.
The text was updated successfully, but these errors were encountered: