veryBadProgrammer
veryBadProgrammer

Reputation: 115

GoogleTest: how to return success result?

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

Answers (1)

Keith Russell
Keith Russell

Reputation: 598

Google Test defines "success" as "no failures".

(So, simply returning is sufficient.)

Upvotes: 2

Related Questions