agentleFS
SentryKnown publishergetsentry/sentry-unreal/.claude/skills/ue-integration-test/SKILL.md

ue-integration-test

Skill176 starsChanged 4 months agoMITView on GitHub

Run integration tests using the Pester framework

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run integration tests for the Sentry Unreal SDK using the Pester framework and app-runner module.

    line 6
  2. Distinctive:

    Before running tests, verify the following are available:

    line 12
  3. Very specific:

    Pester 5+: - if not installed: Install-Module -Name Pester -Force -SkipPublisherCheck

    line 16
  4. Distinctive:

    Run CMake to download the app-runner PowerShell module (this step does not require env vars):

    line 23
  5. Very specific:

    Look for the built application in sample/dist/ first (the default output of /ue-build):

    line 31
  6. Very specific:

    If the expected file exists in sample/dist/, set the env var to its absolute path.

    line 43
  7. Very specific:

    Check that required env vars are set (use PowerShell .NET method on Windows: [System.Environment]::GetEnvironmentVariable('VAR_NAME')).

    line 49
  8. Very specific:

    Ensure a device or emulator is connected and visible via adb devices

    line 63
  9. Distinctive:

    If any required variable is missing, list which ones are missing and ask the user to set them before proceeding.

    line 65
  10. Distinctive:

    If the platform is unclear, ask the user.

    line 73
  11. Distinctive:

    When iterating on a single test, filter by its name instead of rerunning the whole suite:

    line 89
  12. Very specific:

    Test outputs are saved to integration-test/output/:

    line 99
  13. Very specific:

    If tests fail, check these output files and event-*.json (events fetched from Sentry API) for debugging.

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Run integration tests for the Sentry Unreal SDK using the Pester framework and app-runner module.

Refer to integration-test/README.md for detailed documentation on test coverage, CI integration, and SauceLabs configuration.

Prerequisites

Before running tests, verify the following are available:

  • PowerShell 7+ (Core edition)
  • CMake 3.20+
  • Pester 5+ - if not installed: Install-Module -Name Pester -Force -SkipPublisherCheck
  • Pre-built SentryPlayground application in Development configuration (Shipping builds lack log output required by tests). If not built, suggest running /ue-build first.

Steps

1. Setup app-runner module

Run CMake to download the app-runner PowerShell module (this step does not require env vars):

cd integration-test && cmake -B build -S .

2. Locate the test application

Look for the built application in sample/dist/ first (the default output of /ue-build):

PlatformExpected path
Windowssample/dist/Windows/SentryPlayground.exe
macOSsample/dist/Mac/SentryPlayground.app/Contents/MacOS/SentryPlayground
Linuxsample/dist/Linux/SentryPlayground.sh
Android (emulator)sample/dist/Android/SentryPlayground-x64.apk
Android (device/cloud)sample/dist/Android/SentryPlayground-arm64.apk

Resolve SENTRY_UNREAL_TEST_APP_PATH in this order:

  1. If the expected file exists in sample/dist/, set the env var to its absolute path.
  2. Otherwise, if SENTRY_UNREAL_TEST_APP_PATH is already set, use its current value.
  3. Otherwise, ask the user for the path and set the env var to their input.

3. Verify environment variables

Check that required env vars are set (use PowerShell .NET method on Windows: [System.Environment]::GetEnvironmentVariable('VAR_NAME')). Verify non-empty only, never print values:

Common (always required):

  • SENTRY_UNREAL_TEST_DSN
  • SENTRY_AUTH_TOKEN
  • SENTRY_UNREAL_TEST_APP_PATH - resolved automatically in step 2, or set manually

Android via SauceLabs (required for cloud testing):

  • SAUCE_USERNAME
  • SAUCE_ACCESS_KEY
  • SAUCE_REGION - e.g., us-west-1, eu-central-1
  • SAUCE_DEVICE_NAME - must match a device available in the specified region; datacenter suffix must align with region (us-west-1 requires _sjc1, eu-central-1 requires _fra1)

Android via ADB (local testing):

  • Ensure a device or emulator is connected and visible via adb devices

If any required variable is missing, list which ones are missing and ask the user to set them before proceeding.

4. Select test file based on platform

Determine the platform from conversation context:

  • Windows, Linux, macOS: Integration.Desktop.Tests.ps1
  • Android: Integration.Android.Tests.ps1

If the platform is unclear, ask the user.

5. Run tests

Execute from the integration-test/ directory:

cd integration-test

# Desktop (Windows, Linux, macOS)
pwsh -Command 'Invoke-Pester ./Integration.Desktop.Tests.ps1'

# Android
pwsh -Command 'Invoke-Pester ./Integration.Android.Tests.ps1'

When iterating on a single test, filter by its name instead of rerunning the whole suite:

pwsh -Command 'Invoke-Pester ./Integration.Desktop.Tests.ps1 -FullNameFilter "*crash*"'

The full suite can take longer than the default command timeout — run it in the background and monitor its output, or raise the timeout accordingly.

6. Check results

Test outputs are saved to integration-test/output/:

PlatformOutput files
Desktop*-crash-stdout.log, *-crash-stderr.log, *-crash-result.json, *-message-stdout.log, *-message-stderr.log, *-message-result.json, event-*.json
Android*-logcat.txt, event-*.json

If tests fail, check these output files and event-*.json (events fetched from Sentry API) for debugging.

The SENTRY_APP_RUNNER environment variable, if set, points to the app-runner module source code for deeper investigation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.