test-openwatt

Automate unit and runtime testing for the OpenWatt application.

2|Updated Sep 15, 2023
One-click install
npx skills add https://github.com/open-watt/openwatt --skill test-openwatt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-openwatt
Source: https://github.com/open-watt/openwatt/tree/main/.claude/skills/test-openwatt
Command: npx skills add https://github.com/open-watt/openwatt --skill test-openwatt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured toolkit to test and debug the OpenWatt application, covering both unit tests (D language unittest blocks) and runtime integration tests with a Python harness, plus a persistent REPL workflow for interactive exploration and crash debugging.

Core Features & Use Cases

  • Unit Tests: Run D language unittest blocks to validate individual functions and data structures.
  • Runtime Integration Tests: Use the Python test harness to validate end-to-end flows, device interactions, and protocol stacks.
  • Crash Debugging & REPL: Leverage persistent REPL sessions for iterative experimentation and crash analysis; use the provided test utilities to reproduce failures.
  • Guided Workflows: Clear, repeatable testing workflows to maintain quality during development and CI.

Quick Start

Run a quick sanity check with python test/test_runner.py.

Frequently Asked Questions about test-openwatt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run unit tests for D language unittest blocks?

Use a D compiler with unittest support to execute D language unittest blocks, validating individual functions and data structures. This Skill automates running these unit tests and collecting results for the OpenWatt application.

How do I execute runtime integration tests with a Python test harness?

Execute runtime integration tests by running the Python test harness to validate end-to-end flows, device interactions, and protocol stacks. You can trigger a quick sanity check using the command python test/test_runner.py to start the process.

Can I use a persistent REPL for crash debugging and interactive testing?

Yes, you can use a persistent REPL workflow for interactive exploration and crash debugging. It enables iterative experimentation and leverages provided test utilities to reproduce failures and analyze crashes within the OpenWatt console.

Do I need a specific D compiler to run OpenWatt unit tests?

Yes, you need a D compiler with unittest support to run OpenWatt unit tests. The testing workflow relies on this compiler to execute unittest blocks, alongside a Python environment for the test harness and REPL.

What is the best way to debug runtime crashes in an OpenWatt console?

The best way to debug runtime crashes is using the persistent REPL workflow combined with the Python test harness. This approach allows interactive exploration, iterative experimentation, and reproduction of failures using provided test utilities.