run-tests

Run Catch2 C++ and pytest Python tests to validate code correctness.

307|59|Updated Jun 2, 2024
One-click install
npx skills add https://github.com/spiriMirror/libuipc --skill run-tests-spirimirror
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/spiriMirror/libuipc/tree/main/.cursor/skills/run-tests
Command: npx skills add https://github.com/spiriMirror/libuipc --skill run-tests-spirimirror

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Running tests across C++ and Python components to ensure code quality and regression safety for the libuipc project.

Core Features & Use Cases

  • Run all tests in a configured binary built with Catch2 for C++ code located in apps/tests/.
  • Execute targeted tests by name, tag, or test suite, including Python pytest tests under python/tests/.
  • Inspect test organization and selectively verify areas such as geometry, core engine, and backends.

Quick Start

Build the project and run all tests using the uipc_test_<name> binaries in the bin directory.

Frequently Asked Questions about run-tests

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

FAQPage Schema
How do I run C++ and Python tests for a mixed-language project?

Run C++ and Python tests by executing Catch2-built binaries from the bin directory and pytest commands under python/tests. This validates code correctness across both language components in a single workflow.

Can I run targeted tests by name or tag instead of executing the entire test suite?

Yes, you can execute targeted tests by name, tag, or test suite. This allows you to selectively verify specific areas like geometry, the core engine, or backends without running the full collection.

What do I need to build before I can run Catch2 tests for C++ code?

You need a completed project build configured with Catch2 to run C++ tests. The built uipc_test_<name> binaries must exist in your bin directory before execution.

Do I need a specific Python environment setup to execute pytest tests?

Yes, a pytest-enabled Python environment is required to execute tests under python/tests. This setup ensures Python components are properly validated alongside C++ binaries.

How does running tests across C++ and Python components help with regression checks?

Running tests across C++ and Python ensures regression safety by validating code correctness in core engine, geometry, and backends. It integrates into development workflows for local verification and CI.

Why are my Catch2 C++ tests not found when I try to run them?

Catch2 C++ tests are not found if the project has not been built first. You must build the project to generate the required uipc_test_<name> binaries in the bin directory before running.