-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshot feature removed in 4.0.4 #306
Comments
This is planned for the next release. On Oct 1, 2016 5:45 PM, "Adam" notifications@github.com wrote:
|
I am not sure but I think that to implement this feature for the junit5 provider we will need junit-team/junit5#618 to be resolved. I will work on adding this functionality to the junit4 provider either in #355 where the capture functionality was added or I will extract out the capture functionality from 355. |
I think that screenshot capture should be moved out of |
Sounds good to me. 😃 |
Is there a plan to re-enable this? private static <T> void verifyThatImpl(String reason,
T value,
Matcher<? super T> matcher) {
try {
MatcherAssert.assertThat(reason, value, matcher);
}
catch (AssertionError error) {
// TODO: make error capture and assertion throw more reliable.
// captureErrorScreenshot();
throw new AssertionError(error.getMessage());
}
} |
@brcolow Should this feature be re-added to |
Can we add the auto-capture behavior to |
I ended writing a simple JUnit @rule that catches any exception and takes screenshot. I found this more useful as my tests involve fx matchers, various junit/hamcrest asserts and mockito. This approach works in all cases... |
@adamish IMO it makes sense for TestFX |
I agree with @brcolow. Although one could use a Rule to accomplish this, the code I've written in #422 also allows a developer to take a screenshot of the test even when it doesn't fail without needing to get deep into TestFX's still undocumented API. I'm not sure why one would want to do that, but you never know. |
@brcolow Do you close issues immediately after they've been fixed/resolved (like this one) or only after there is a new release with the fix? |
I haven't really came up with a policy TBH. I think closing as soon as they are fixed/resolved makes sense - most of the time I just forget. |
Thanks for the clarification. Yeah... the admin work behind open source projects can be a pain... |
The screenshot on failure functionality in 3.x appears to have been removed in 4.0.4.
Could this be restored?
The text was updated successfully, but these errors were encountered: