Reputation: 115
In the documentation of GoogleTest I found this:
SUCCEED();
Generates a success. This does NOT make the overall test succeed. A test is considered successful only if none of its assertions fail during its execution.
Does this mean unless an assertion fails, there's no way to end a test early?
Upvotes: 1
Views: 2994
Reputation: 598
Google Test defines "success" as "no failures".
(So, simply returning is sufficient.)
Upvotes: 2