We have started migrating our tests to Swift Testing.
Any asserts from XCTest are treated as no-ops when run in the new framework and vice versa. For example the following tests will pass without any errors or warnings.
It would be nice if ViewControllerPresentationSpy also supported the new framework. This can be done by extending the existing asserts with a matching copy of calls to #expect() as in this sample example.
We have started migrating our tests to Swift Testing.
Any asserts from
XCTest
are treated as no-ops when run in the new framework and vice versa. For example the following tests will pass without any errors or warnings.and
It would be nice if
ViewControllerPresentationSpy
also supported the new framework. This can be done by extending the existing asserts with a matching copy of calls to#expect()
as in this sample example.This way the assert can be used regardless of which framework is running at any given moment.