How to mark a Google Test test-case as "expected to fail"?

c++, googletest, unit-testing

Solution

You can prefix the test name with `DISABLED_`.

Problem

I want to add a testcase for functionality not yet implemented and mark this test case as "it's ok that I fail". Is there a way to do this? EDIT: I want the test to be executed and the framework should verify it is failing as long as the testcase is in the "expected fail" state. EDIT2: It seems that the feature I am interested in does not exist in google-test, but it does exist in the Boost Unit Test Framework, and in LIT.

Original source