Skip to content

[SwiftBindings] Setup xunit testing framework #2871

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

Merged
merged 20 commits into from
Dec 17, 2024

Conversation

kotlarmilos
Copy link
Member

Description

This PR introduces the following test improvements:

  • Unit tests: Tests for components of the projection tooling.
  • Integration tests: Tests that compile Swift code and invoke the projection tooling to generate bindings on macOS.
  • Framework tests (TBD): Tests that consume bindings as a NuGet package, build tests/apps, and run on target platforms.

This change improves debugging by referencing generated bindings within the integration tests. Additionally, it removes need for reflection in tests. On non-macOS platforms, only the tooling is built, and tests are skipped.

The objective is to set up the pipeline for StoreKit2 and SwiftUI, and begin tracking bindings coverage using the projection tooling, which will be introduced in a follow-up PR.

@kotlarmilos kotlarmilos added the area-SwiftBindings Swift bindings for .NET label Dec 11, 2024
@kotlarmilos kotlarmilos self-assigned this Dec 11, 2024
Copy link

@stephen-hawley stephen-hawley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see this branch get migrated to use TypeMetadata instead of void * and be ready to use the upcoming metadata access method in TypeMetadata. Like what I'm seeing.

@kotlarmilos kotlarmilos merged commit d51a97f into feature/swift-bindings Dec 17, 2024
6 checks passed
@kotlarmilos kotlarmilos deleted the swift-bindings/testing-framework branch December 17, 2024 15:53
@kotlarmilos kotlarmilos changed the title [SwiftBindings] Improve testing framework [SwiftBindings] Setup xunit testing framework Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-SwiftBindings Swift bindings for .NET
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants