-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Convert ReferenceTests to
swift-testing
parameterised tests (#…
…47) Motivation ---------- `ImageReference.testReferences` tests is a table-driven test which iterates over a list of test cases. Under `XCTest` it was implemented as a single test containing a loop, but with `swift-testing` the loop can be moved outside the test. This makes it easier to see that multiple test cases are being run and to diagnose problems. Modifications ------------- `ImageReference.testReferences` now uses `@Test(arguments: ...)` to iterate over the existing test list. Result ------ Test reports are more detailed. Test Plan --------- All tests continue to pass.
- Loading branch information
Showing
2 changed files
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters