Skip to content
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

Swift Testing verify is not working #517

Closed
dr-star opened this issue Oct 10, 2024 · 2 comments · Fixed by #518
Closed

Swift Testing verify is not working #517

dr-star opened this issue Oct 10, 2024 · 2 comments · Fixed by #518

Comments

@dr-star
Copy link

dr-star commented Oct 10, 2024

The verify method doesn't work properly when using with Swift Testing library.

Given

verify(fidelityCardService, times(1)).getFidelityCardDetails(storeId: equal(to: storeId), fidelityCardId: equal(to: fidelityCardId))

is ignoring the parameter times(X) when class is not a subclass of XCTestCase. Migrating a test from XCTest

In case the class is a subclass the test fails as expected

@aiKrice
Copy link

aiKrice commented Oct 17, 2024

Encountered same issue here.

@clementcasa
Copy link

I have the same issue on my tests, I had to roll back to XCTest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants