Skip to content

Convert all unit tests to Swift Testing#3

Open
mbernson wants to merge 8 commits into
swift-package-managerfrom
swift-testing
Open

Convert all unit tests to Swift Testing#3
mbernson wants to merge 8 commits into
swift-package-managerfrom
swift-testing

Conversation

@mbernson

@mbernson mbernson commented Feb 21, 2025

Copy link
Copy Markdown
Owner

This PR converts all of the SwiftGit2 unit tests from Quick & Nimble to the new Swift Testing framework.

I've taken care to not change the logic, but only translate all the existing tests to equivalent Swift Testing tests. (Using Suites, #require, #expect, etcetera).

The large number of lines changes is only because there is one less level of indentation in the test specs now:

Before

class OIDSpec: QuickSpec {
    override class func spec() {
        // Tests
    }
}

After

@Suite("OID") class OIDSpec {
    // Tests
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant