-
Notifications
You must be signed in to change notification settings - Fork 175
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
Successful verification results are not reported when using Catch #103
Comments
I've found a "workaround" using CHECK(Verify(Method(mock,bar)).AtLeast(1) == true); I wanted to use: CHECK(Verify(Method(mock,bar)).AtLeast(1)); but this doesn't compile. The message error is:
The only issue now is that when the assertion fails it doesn't report the same information. Before:
And now:
Any tips? |
The last commit from Nov-5-2017, supports Catch 2.0.1. |
I've just tested it using Catch 2.0.1 (Generated: 2017-11-03 11:53:39.642003) and FakeIt's last commit (Generated: 2017-11-05 20:30:40.182814). The issue is still present. Furthermore, the "workaround" using |
Thanks,
I'll try to fix it tomorrow.
…On Nov 11, 2017 05:09, "Fran García Salomón" ***@***.***> wrote:
I've just tested it using Catch 2.0.1 (Generated: 2017-11-03
11:53:39.642003) and FakeIt's last commit (Generated: 2017-11-05
20:30:40.182814). The issue is still present. Furthermore, the "workaround"
using CHECK no longer works.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACc8grFVv2KryFMEwBeZ4iE7IKbYsE0jks5s1ZxwgaJpZM4OhJO7>
.
|
Ok, I fixed the workaround, It will now work.
You can now use CHECK(mock.verify(.....)).
Please download the latest build.
As for the issue itself. Fakeit currently only reports verification
failures to the Unit Testing framework, as a result the success cases are
not listed on the Catch test report.
I will issue a fix in the near future, meantime please use the workaround.
…On Sat, Nov 11, 2017 at 10:14 AM, Eran Pe'er ***@***.***> wrote:
Thanks,
I'll try to fix it tomorrow.
On Nov 11, 2017 05:09, "Fran García Salomón" ***@***.***>
wrote:
> I've just tested it using Catch 2.0.1 (Generated: 2017-11-03
> 11:53:39.642003) and FakeIt's last commit (Generated: 2017-11-05
> 20:30:40.182814). The issue is still present. Furthermore, the "workaround"
> using CHECK no longer works.
>
> —
> You are receiving this because you modified the open/close state.
> Reply to this email directly, view it on GitHub
> <#103 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ACc8grFVv2KryFMEwBeZ4iE7IKbYsE0jks5s1ZxwgaJpZM4OhJO7>
> .
>
--
Eran
1-424-2504000
|
When using Fakeit along Catch
Verify
successes are not reported.If I execute this test only 1 assertion is reported:
But if I change the verification to "AtLeast(2)" 2 assertions are reported:
Catch version: 1.9.6
FakeIt: Generated: 2017-05-07 09:27:02.651812
The text was updated successfully, but these errors were encountered: