ctru-rs

Rust wrapper for libctru


Project maintained by rust3ds Hosted on GitHub Pages — Theme by mattgraham

test-runner

A helper crate for running automated Rust tests on a 3DS. Since the builtin Rust test framework expects a more traditional OS with subprocesses etc., it’s necessary to use custom_test_frameworks when running tests on 3DS hardware or in an emulator to get a similar experience as a usual cargo test.

Usage

First the test runner to your crate:

cargo add --dev test-runner --git https://github.com/rust3ds/ctru-rs

In lib.rs and any integration test files:

#![feature(custom_test_frameworks)]
#![test_runner(test_runner::run_gdb)]

Caveats