Crate test_runner

Source
Expand description

Custom test runner for building/running tests on the 3DS.

This library can be used with custom_test_frameworks to enable normal Rust testing workflows for 3DS homebrew.

Structs§

ConsoleRunner
Run tests using the ctru::console::Console (print results to the 3DS screen). This is mostly useful for running tests manually, especially on real hardware.
GdbRunner
Show test output in GDB, using the File I/O Protocol (called HIO in some 3DS homebrew resources). Both stdout and stderr will be printed to the GDB console.
SocketRunner
Show test output via a network socket to 3dslink. This runner is only useful on real hardware, since 3dslink doesn’t work with emulators.

Functions§

run_console
Run tests using the ConsoleRunner. This function can be used with the #[test_runner] attribute.
run_gdb
Run tests using the GdbRunner. This function can be used with the #[test_runner] attribute.
run_socket
Run tests using the SocketRunner. This function can be used with the #[test_runner] attribute.