Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Write NUnit tests once. Run them on Windows and a Crestron Home processor

Описание и применение

Разработчики могут писать NUnit‑тесты один раз и запускать их как на Windows, так и на контроллере Crestron Home, используя пакеты, автоматическое развертывание и CI.

Задача

Developers need to verify that NUnit tests written on a Windows machine behave correctly on a Crestron Home processor, which has different filesystem, networking, and runtime constraints.

Результат

Developers can run the same NUnit tests on both Windows and Crestron Home processors, ensuring platform compatibility, enabling live and UI tests, and integrating with CI pipelines without duplicating test code.

Рабочий процесс

  • 1. Write ordinary NUnit tests in a .NET project.
  • 2. Use CrestronHomeNUnit.TestAdapter to add a Visual Studio Test Explorer entry that builds a processor test package.
  • 3. Deploy the package to the processor via CrestronHomeDevTools or the Windows runner.
  • 4. Run the tests on the processor using the Windows runner or the Home tile.
  • 5. (Optional) Enable live tests with environment‑specific settings in LiveTestSettings.json.
  • 6. (Optional) Add CI steps with GitHub Actions to run hardware stages on a self‑hosted Windows runner.
  • 7. (Optional) Perform UI tests against the Crestron Home Android app using the provided UI automation library and Android emulator.

Доказательства

The central idea behind CrestronHomeNUnit is straightforward: write the NUnit tests once, and run those identical tests on Windows and on the Crestron Home processor.

Источник

The processor package targets .NET Framework 4.7.2 and executes under the processor’s Mono runtime. The desktop tooling uses .NET 10.

Источник

For GitHub Actions, a self-hosted Windows runner with network access to the processor can execute the hardware stages.

Источник

  • Дата записи: 2026-09-22T19:15:42.108Z