testing

Automate unit, integration, and end-to-end tests for the Shorted project.

3|Updated Jan 22, 2024
One-click install
npx skills add https://github.com/castlemilk/shorted.com.au --skill testing-castlemilk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/castlemilk/shorted.com.au/tree/main/.claude/skills/testing
Command: npx skills add https://github.com/castlemilk/shorted.com.au --skill testing-castlemilk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Running and writing tests for the Shorted project to prevent regressions and ensure code quality across backend, frontend, and deployment pipelines.

Core Features & Use Cases

  • Unit tests for Go services and Next.js components to verify logic and UI behavior.
  • Integration and end-to-end testing using Playwright, testcontainers, and Jest, with clear test organization and reproducible setups.
  • Use case: when a feature is added, generate and run targeted tests, collect results, and guide improvements.

Quick Start

Run the full test suite locally to validate changes across frontend, backend, and integration layers.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I automate end-to-end tests for a Go and Next.js project?

Run unit tests for Go services and Next.js components by executing Go test and npm test. This verifies logic and UI behavior, generates reports, and gates code changes to prevent regressions across frontend and backend layers.

What is the best way to run integration tests with Playwright and testcontainers?

Run integration tests with Playwright and testcontainers by leveraging Makefile targets and standard test tooling. This provides clear test organization, reproducible setups, and comprehensive results across containerized environments.

Do I need Makefile targets to execute unit, integration, and E2E tests?

Yes, Makefile targets are required to execute unit, integration, and E2E tests. They orchestrate standard test tooling like Go test, npm test, and Playwright to run suites, generate reports, and gate code changes locally or in CI.

Can I use this testing workflow to gate code changes in CI pipelines?

Yes, you can use this testing workflow to gate code changes in CI pipelines. It automates comprehensive unit, integration, and end-to-end tests across Go backend and Next.js frontend, collecting results to ensure code quality.

How do I generate and run targeted tests after adding a new feature?

Generate and run targeted tests after adding a feature by executing the relevant Makefile targets for Go test, npm test, or Playwright. The workflow collects test results and guides improvements for the Shorted project.