Skip to content

Conversation

@zamderax
Copy link
Contributor

@zamderax zamderax commented Oct 15, 2025

Complete migration of all test suites from XCTest to Swift Testing framework.

Migrate all test files from XCTest to Swift Testing framework:
- ConfigTests: migrated to @suite and @test
- DefaultModelTests: migrated to @suite and @test
- EnforcerTests: migrated to @suite and @test with timeout
- RbacApiTests: migrated to @suite and @test
- RoleTests: migrated to @suite and @test
- KeyMatchTests: migrated to @suite and @test
- UtilsTests: migrated to @suite and @test

Added TestSupport.swift for shared test utilities and path resolution.

All tests now use modern Swift Testing framework with #expect assertions
instead of XCTest's XCTAssert family.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@hsluoyz hsluoyz changed the title test: migrate all XCTest to Swift Testing feat: migrate all XCTest to Swift Testing Oct 16, 2025
@hsluoyz hsluoyz merged commit 14df6d7 into casbin:master Oct 16, 2025
4 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.14.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants