Generate Unit Tests for pixelatorR

Generate testthat unit tests for pixelatorR functions with per-file organization.

9|1|Updated Jan 11, 2024
One-click install
npx skills add https://github.com/PixelgenTechnologies/pixelatorR --skill generate-unit-tests-for-pixelatorr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Generate Unit Tests for pixelatorR
Source: https://github.com/PixelgenTechnologies/pixelatorR/tree/main
Command: npx skills add https://github.com/PixelgenTechnologies/pixelatorR --skill generate-unit-tests-for-pixelatorr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you automatically generate deterministic unit tests for pixelatorR functions, accelerating test coverage and quality assurance.

Core Features & Use Cases

  • One-function-per-file tests: Generates testthat files following the project's conventions, including setup outside test_that blocks.
  • Minimal data helpers: Uses minimal_pna_pxl_file() and ReadPNA_* for realistic testing scenarios.
  • End-to-end workflow: Produces tests for both S4 methods and general functions, with invalid-input checks and examples.

Quick Start

Generate a testthat unit test file for a chosen pixelatorR function following the repository conventions.

Frequently Asked Questions about Generate Unit Tests for pixelatorR

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

FAQPage Schema
How do I generate testthat unit tests for pixelatorR functions?

To generate testthat unit tests for pixelatorR, this Skill creates a dedicated test file per exported or internal function under tests/testthat, naming each test-<function_name>.R and organizing setup outside test_that blocks.

How does minimal_pna_pxl_file() work for pixelatorR test data setup?

The minimal_pna_pxl_file() helper provides realistic minimal PNA data for pixelatorR test setup, used alongside appropriate ReadPNA_* readers to load test data outside the test_that blocks.

Can I use this to write tests for both S4 methods and regular functions in pixelatorR?

Yes, you can generate tests for both S4 methods and general functions in pixelatorR. The Skill produces an end-to-end workflow validating expected behavior, checking invalid inputs, and including examples.

Does the generated pixelatorR testing workflow include invalid input checks?

Yes, the generated pixelatorR testing workflow includes invalid input checks. It ensures validation of both expected behavior and invalid inputs per the established SKILL guidelines for deterministic test coverage.

What is the best way to structure testthat files for pixelatorR packages?

The best way to structure testthat files for pixelatorR is using one-function-per-file tests. This convention places setup outside test_that blocks and uses minimal_pna_pxl_file() helpers for realistic testing scenarios.