{"action":"created","issue":{"url":"https://api.github.com/repos/anshooarora/extentreports/issues/324","repository_url":"https://api.github.com/repos/anshooarora/extentreports","labels_url":"https://api.github.com/repos/anshooarora/extentreports/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/anshooarora/extentreports/issues/324/comments","events_url":"https://api.github.com/repos/anshooarora/extentreports/issues/324/events","html_url":"https://github.com/anshooarora/extentreports/issues/324","id":131749550,"number":324,"title":"when using ExtentTest startTest, is it possible to only flush passed tests (excluding failed tests)","user":{"login":"hdomi001","id":8361237,"avatar_url":"https://avatars.githubusercontent.com/u/8361237?v=3","gravatar_id":"","url":"https://api.github.com/users/hdomi001","html_url":"https://github.com/hdomi001","followers_url":"https://api.github.com/users/hdomi001/followers","following_url":"https://api.github.com/users/hdomi001/following{/other_user}","gists_url":"https://api.github.com/users/hdomi001/gists{/gist_id}","starred_url":"https://api.github.com/users/hdomi001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdomi001/subscriptions","organizations_url":"https://api.github.com/users/hdomi001/orgs","repos_url":"https://api.github.com/users/hdomi001/repos","events_url":"https://api.github.com/users/hdomi001/events{/privacy}","received_events_url":"https://api.github.com/users/hdomi001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-05T20:37:50Z","updated_at":"2016-02-06T21:28:15Z","closed_at":null,"body":"When creating a new ExtentTest, flush()  is used to write the tests onto the report document. Is it possible to have a flush that only writes passed data to the document? \r\n\r\nThe reason i am trying to do this is because, if the tests failed then i re-run them. Therefore, if the test run is the original run, then i only want to write those that passed into the report document. However, if its a re-run test, then i want to flush all tests (passed/failed/etc). \r\n\r\nSomething like, \r\n\r\nflush(\"PASSED\")\r\nflush(\"ALL\")\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/anshooarora/extentreports/issues/comments/180869606","html_url":"https://github.com/anshooarora/extentreports/issues/324#issuecomment-180869606","issue_url":"https://api.github.com/repos/anshooarora/extentreports/issues/324","id":180869606,"user":{"login":"hdomi001","id":8361237,"avatar_url":"https://avatars.githubusercontent.com/u/8361237?v=3","gravatar_id":"","url":"https://api.github.com/users/hdomi001","html_url":"https://github.com/hdomi001","followers_url":"https://api.github.com/users/hdomi001/followers","following_url":"https://api.github.com/users/hdomi001/following{/other_user}","gists_url":"https://api.github.com/users/hdomi001/gists{/gist_id}","starred_url":"https://api.github.com/users/hdomi001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdomi001/subscriptions","organizations_url":"https://api.github.com/users/hdomi001/orgs","repos_url":"https://api.github.com/users/hdomi001/repos","events_url":"https://api.github.com/users/hdomi001/events{/privacy}","received_events_url":"https://api.github.com/users/hdomi001/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T21:28:15Z","updated_at":"2016-02-06T21:28:15Z","body":"Yeah i understand that. However, I am having trouble with the following scenario: \r\n\r\nLets say we have \r\n3 Total Tests running, 1 Passed and 2 Failed. = 33% pass percentage\r\n2 are then re-ran. 1 Passed and 1 Failed.\r\n\r\nwhich Pass percentage would the best to display? after the execution is done, the Report would show we ran 5 Tests (3 Total Tests + 2 Re-runs) and shows we have 2 Passed and 3 Failed = 40% Pass percentage. But In reality we know that 2 Test were passed and 1 was Failed after the re-runs was completed = 67% Pass percentage"}}