I am using the below code to mark a test case as failed in extent report.
test.log(Status.FAIL, "Error message");
It mark the test case