agentleFS
fxckcodefxckcode/tauri-skills/skills/tauri-testing/SKILL.md

tauri-testing

Skill3 starsChanged 3 months agoMITView on GitHub

Test Tauri 2 frontends, Rust commands, IPC contracts, permissions, and packaged applications. Use when adding tests, diagnosing regressions, or preparing a Tauri change for review.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with the official testing guide.

    line 8
  2. Distinctive:

    Run existing frontend and Rust tests before editing.

    line 12
  3. Distinctive:

    Test IPC at the boundary: valid and malformed payloads, unknown commands, typed errors, serialization compatibility, events, and channel …

    line 14
  4. Distinctive:

    Test security behavior explicitly: denied capability, scope escape attempts, untrusted paths/URLs, CSP/header failures, and remote-content …

    line 15
  5. Distinctive:

    Test packaging inputs: configured resources exist at expected paths and sidecars are present, executable, target-matched, permissioned, and …

    line 16
  6. Distinctive:

    Run platform-aware integration tests for packaged behavior where the feature uses OS APIs.

    line 17
  7. Very specific:

    Run cargo test, frontend tests, the project's Tauri build/check command, and packaged smoke tests.

    line 18
  8. Distinctive:

    Prefer deterministic assertions over sleeps and screenshots alone.

    line 22
  9. Distinctive:

    Keep fixtures isolated; never use real credentials, personal files, or production endpoints.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Tauri testing

Start with the official testing guide. This skill is scoped to Tauri 2; record installed CLI, crate, frontend, and plugin versions for failures.

Workflow

  1. Run existing frontend and Rust tests before editing; identify real scripts, resources, sidecars, and target matrix.
  2. Unit-test frontend state and adapters without requiring a WebView. Unit-test Rust validation, transformations, and error mapping with normal Rust tooling.
  3. Test IPC at the boundary: valid and malformed payloads, unknown commands, typed errors, serialization compatibility, events, and channel ordering/cancellation where used.
  4. Test security behavior explicitly: denied capability, scope escape attempts, untrusted paths/URLs, CSP/header failures, and remote-content restrictions.
  5. Test packaging inputs: configured resources exist at expected paths and sidecars are present, executable, target-matched, permissioned, and correctly invoked. Exercise missing-resource and sidecar failure paths.
  6. Run platform-aware integration tests for packaged behavior where the feature uses OS APIs. For Android and iOS, install a debug build on at least one emulator/device per target, smoke-test launch, navigation, IPC, permissions, lifecycle resume, resource/sidecar behavior where supported, and graceful unsupported-platform handling.
  7. Run cargo test, frontend tests, the project's Tauri build/check command, and packaged smoke tests. Prefer CI matrix evidence over a single desktop dev run.

Safe defaults

  • Prefer deterministic assertions over sleeps and screenshots alone.
  • Keep fixtures isolated; never use real credentials, personal files, or production endpoints.
  • A passing dev build is insufficient evidence for packaging, permissions, mobile, or updater behavior.

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.