Skip to content

Include Unit Testing examples #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tdcox opened this issue Mar 11, 2025 · 0 comments
Open

Include Unit Testing examples #92

tdcox opened this issue Mar 11, 2025 · 0 comments

Comments

@tdcox
Copy link

tdcox commented Mar 11, 2025

Ideally, educational examples should include some simple unit tests to demonstrate the requisite patterns for testing in a new environment.

This is particularly important for embedded systems since cross-compilation introduces significant testing challenges. There are several scenarios that should be demonstrated:

  1. Testing Swift 'business logic' on the host machine - compiling for the host and executing tests locally as part of the build.
  2. Testing on target hardware - cross-compiling and then launching a test suite on target hardware and collecting results.
  3. Testing on emulated hardware - cross-compiling and then launching a test suite on a simulator / emulator running on the host.

Consideration should be given to managing external dependencies like FreeRTOS libraries and physical hardware that may have limited emulation support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant