You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following two issues are found when I have unnecessary stubbing in test with Mockito.
unnecessary stubbings errors are swallowed and test passed when test_filter is being used, however, it failed as expected without test_filter
unnecessary stubbings errors are NOT reported in JUnit reports regardless of using test_filter or not. The JUnit report shows all tests have passed.
Please follow this repo to reproduce the issue locally.
The text was updated successfully, but these errors were encountered:
henrypoon
changed the title
unnecessary stubbings issues are swallowed when tests run with Mockito
unnecessary stubbings errors are swallowed when tests run with Mockito
Sep 12, 2022
ISTM there isn't anything Bazel related going on here. This is seems more related to mockito/mockito#1924. From a superficial reading of that and all the linked issues, it appears mockito strict stubbing behavior can often be surprising.
The following two issues are found when I have unnecessary stubbing in test with Mockito.
Please follow this repo to reproduce the issue locally.
The text was updated successfully, but these errors were encountered: