Github user jinmeiliao commented on a diff in the pull request:

    https://github.com/apache/incubator-geode/pull/254#discussion_r82068961
  
    --- Diff: 
geode-pulse/src/test/java/org/apache/geode/tools/pulse/tests/PulseAbstractTest.java
 ---
    @@ -136,6 +146,29 @@
     
       private static final DecimalFormat df2 = new 
DecimalFormat(PulseConstants.DECIMAL_FORMAT_PATTERN);
     
    +  @Rule
    +  public TestRule testWatcher = new TestWatcher() {
    +    @Override
    +    public void failed(Throwable t, Description test) {
    +      takeScreenshot(test.getDisplayName());
    +    }
    +  };
    +
    +  @Rule
    +  public RetryRule retryRule = new RetryRule(5);
    +
    +  public void takeScreenshot(String screenshotName) {
    --- End diff --
    
    Yeah, this sounds better.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to