Skip to content

chore: Added Switch as build target for integration tests#2509

Merged
bitsandfoxes merged 21 commits intomainfrom
chore/build-for-switch
Feb 4, 2026
Merged

chore: Added Switch as build target for integration tests#2509
bitsandfoxes merged 21 commits intomainfrom
chore/build-for-switch

Conversation

@bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Jan 29, 2026

Summary

This aims to allow running integration-test.ps1 locally and on the console runner.
The integration test consists of

  • Installing the package
  • Configuring Sentry
  • (New) Copying the native plugin
  • Building
  • (Optionally) Running the smoke test

Implementation

The integration-test.ps1 was originally designed to do what CI does, but locally, using the same scripts. This now extends this to support the manual copying of native libs step. For that reason building and packaging/extracting got stripped out into dev-integration-test.ps1 to still allow for local workflows.

Usage

Local Development

# Standard platforms (macOS, Windows, Linux)
./test/Scripts.Integration.Test/dev-integration-test.ps1 `
    -Platform "macOS" `
    -UnityVersion "2022.3.70f1" `
    -Clean

Integration Test (Phase 1: Building)

# CI / Local Runner
./test/Scripts.Integration.Test/integration-test.ps1 `
    -UnityPath "/path/to/unity" `
    -UnityVersion "2022.3.70f1" `
    -Platform "Switch" `
    -PackagePath "/ci/artifacts/sentry-unity-package" `
    -NativeSDKPath "/ci/artifacts/switch-native-sdk" `
    -SkipTests

#skip-changelog

@github-actions
Copy link
Contributor

github-actions bot commented Jan 29, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

@bitsandfoxes bitsandfoxes requested a review from a team February 2, 2026 17:20
Copy link
Member

@JoshuaMoelans JoshuaMoelans left a comment

Choose a reason for hiding this comment

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

just a few qs and nits, but otherwise LGTM

bitsandfoxes and others added 3 commits February 4, 2026 16:51
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@bitsandfoxes bitsandfoxes merged commit 1aadf2d into main Feb 4, 2026
29 checks passed
@bitsandfoxes bitsandfoxes deleted the chore/build-for-switch branch February 4, 2026 16:23
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.

2 participants