GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Toss
  • GitHub
  • Quick Start
  • Installation
  • Development Setup
  • Overview
  • Pairing Devices
  • Using Toss
  • Architecture
  • API Reference
  • Platform Support
  • Testing
  • Overview
  • macOS

This view

  • Original page
  • New address

GeezerVison is showing toss.docs.renner.dev — Testing

Testing

Testing

Section titled “Testing”

Testing guide for Toss development.

Running Tests

Section titled “Running Tests”

Rust Tests

Section titled “Rust Tests”
Terminal window
cd rust_core
cargo test

Flutter Tests

Section titled “Flutter Tests”
Terminal window
cd flutter_app
flutter test

All Tests

Section titled “All Tests”
Terminal window
make test-all

Test Structure

Section titled “Test Structure”

Rust Core Tests

Section titled “Rust Core Tests”

Located in rust_core/src/**/tests/:

  • Network Tests: P2P, relay, mDNS
  • Crypto Tests: Key exchange, encryption
  • Protocol Tests: Message serialization
  • Storage Tests: Database operations

Flutter Tests

Section titled “Flutter Tests”

Located in flutter_app/test/:

  • Widget Tests: UI component tests
  • Service Tests: Service layer tests
  • Integration Tests: End-to-end tests

Test Coverage

Section titled “Test Coverage”

Target coverage: 70%

Check coverage:

Terminal window
cd rust_core
cargo tarpaulin --out Html

Writing Tests

Section titled “Writing Tests”

Rust Test Example

Section titled “Rust Test Example”
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_function() {
assert_eq!(function(), expected);
}
}

Flutter Test Example

Section titled “Flutter Test Example”
void main() {
testWidgets('Widget test', (WidgetTester tester) async {
await tester.pumpWidget(MyWidget());
expect(find.text('Hello'), findsOneWidget);
});
}

Integration Tests

Section titled “Integration Tests”

E2E tests require FFI bindings:

Terminal window
cd flutter_app
flutter test integration_test/app_test.dart

CI/CD Testing

Section titled “CI/CD Testing”

Tests run automatically on:

  • Every push to main/develop
  • Every pull request
  • Nightly builds

See .github/workflows/ci.yml for details.

Next Steps

Section titled “Next Steps”
  • API Reference - API documentation
  • Platform Support - Platform-specific details
  • Architecture - System design
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.