nette-testing

Automate unit testing in Nette projects with Nette Tester bootstrap and assertions.

41|4|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/nette/claude-code --skill nette-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nette-testing
Source: https://github.com/nette/claude-code/tree/main/plugins/nette/skills/nette-testing
Command: npx skills add https://github.com/nette/claude-code --skill nette-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams strengthen PHP test quality with Nette Tester by standardizing bootstrap setup, test execution, and assertion usage.

Core Features & Use Cases

  • Bootstrap setup and environment initialization for Nette Tester.
  • Clear test structure using test() and Assert methods.
  • Reusable patterns for common assertions and tester commands across .phpt files.

Quick Start

Install the nette/tester package as a development dependency, then place tests under the tests/ directory using the test() format and run them with the provided tester command, for example: composer require nette/tester --dev vendor/bin/tester tests

Frequently Asked Questions about nette-testing

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

FAQPage Schema
How do I set up Nette Tester for PHP unit testing?

Setting up Nette Tester for PHP unit testing requires installing the nette/tester package as a dev dependency via Composer, configuring the bootstrap for environment initialization, placing tests in the tests/ directory, and executing them using the vendor/bin/tester command.

What is the standard structure for Nette Tester test files?

The standard structure for Nette Tester test files involves using the test() function to define test cases and Assert methods for validations, creating reusable assertion patterns across multiple .phpt files within your PHP project's tests directory.

How do I run Nette Tester commands across multiple test files?

To run Nette Tester commands across multiple files, execute the tester command pointing to your tests directory, such as vendor/bin/tester tests, which automates test discovery and execution across all configured .phpt files.

Does this approach work for standardizing unit tests in Nette-based PHP projects?

Yes, standardizing unit tests in Nette-based PHP projects is the core purpose, applying bootstrap setup, test() usage, and assertion helpers to strengthen PHP test quality and ensure consistent test execution across the project.

Do I need Composer to manage Nette Tester dependencies?

Yes, you need Composer to manage Nette Tester dependencies, specifically to install the nette/tester package as a development dependency using the composer require nette/tester --dev command for your PHP testing environment.