Back to list
nx-std

test

by nx-std

0🍴 0📅 Jan 24, 2026

SKILL.md


name: test description: Run the test suite by building tests and deploying to Nintendo Switch. Use for running tests, verifying changes on hardware, or validating implementations. allowed-tools: Bash(just --list:), Bash(just build-tests:), Bash(just list-options-configured:), Bash(just reconfigure:)

Test Skill

This skill orchestrates the full test workflow for the nx-std project. Tests run on actual Nintendo Switch hardware.

When to Use This Skill

Use this skill when you need to:

  • Validate code changes on real hardware
  • Run the test suite after implementing features
  • Verify FFI correctness between Rust and C code
  • Confirm changes before creating a PR

Workflow

This skill orchestrates the full test workflow by invoking other skills:

Step 1: Build Tests

Use the /build skill to build the test NRO:

just build-tests

This compiles the test suite into buildDir/subprojects/tests/nx-tests.nro.

Step 2: Deploy to Switch

Use the /deploy skill to deploy the test NRO to the Nintendo Switch:

just deploy buildDir/subprojects/tests/nx-tests.nro

The deploy skill handles network transfer to the Switch via cargo-nx.

Step 3: Verify Results

🚨 MANDATORY: Ask the user to confirm the tests passed on the console.

Do NOT assume tests passed. The test output is only visible on the Switch screen.

Automatic Orchestration

When you invoke /test, you should:

  1. Verify use_nx=enabled prerequisite is met (reconfigure if needed)
  2. Invoke /build skill with just build-tests
  3. Invoke /deploy skill with the built NRO path
  4. Ask the user to confirm test results

This ensures tests properly validate the Rust implementations.

Test Architecture

Tests are C code that link against Rust crates to verify FFI correctness. Located in subprojects/tests/:

  • source/main.c - Test harness entry point
  • source/harness.h - Test framework macros
  • source/sync/ - Synchronization primitive tests
  • source/rand/ - Random number generation tests

Prerequisites

Build Configuration:

  • Tests MUST be built with use_nx=enabled (unless user explicitly requests otherwise)
  • Check with: just list-options-configured | grep use_nx
  • Reconfigure if needed: just reconfigure -Duse_nx=enabled

Hardware/Deployment (see /deploy skill for details):

  • Nintendo Switch setup requirements
  • Network connectivity requirements
  • cargo-nx installation
  • /build - Building targets (including just build-tests)
  • /deploy - Deploying to Switch hardware
  • /format - Formatting code before testing

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon