test

Create end-to-end tests for Renovate configuration behavior using describeWithRenovate.

Updated Sep 21, 2023
One-click install
npx skills add https://github.com/fohte/renovate-config --skill test-fohte
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/fohte/renovate-config/tree/main/.claude/skills/test
Command: npx skills add https://github.com/fohte/renovate-config --skill test-fohte

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps teams write end-to-end tests for Renovate configuration behavior to ensure updates, skip reasons, and PR generation work as expected.

Core Features & Use Cases

  • Provides a standardized approach to testing Renovate configs using the describeWithRenovate helper.
  • Demonstrates best practices for fixture usage, dry-run modes, and assertion strategies.
  • Real-world example workflows for validating updates and skip conditions.

Quick Start

Run describeWithRenovate with a prepared fixture to validate a Renovate config's behavior.

Frequently Asked Questions about test

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

FAQPage Schema
How do I write end-to-end tests for Renovate config behavior?

To write end-to-end tests for Renovate config behavior, use the describeWithRenovate helper with prepared fixtures to validate updates, skip reasons, and PR generation. This approach standardizes setup and ensures reliable assertions.

What is the best way to validate Renovate dry-run results in tests?

Validating Renovate dry-run results in tests is best achieved by using dryRunMode within the describeWithRenovate helper. This allows you to safely assert expected update outputs and skip conditions without generating actual pull requests.

How does the describeWithRenovate helper work with test fixtures?

The describeWithRenovate helper works by applying prepared test fixtures to simulate repository configurations. It executes Renovate against these fixtures to capture actual output, enabling precise assertions using toMatchObject for maintainable tests.

Can I assert Renovate PR titles and skip reasons in E2E testing?

You can assert Renovate PR titles and skip reasons in E2E testing by leveraging toMatchObject assertions. This strategy validates actual Renovate output against expected values within the describeWithRenovate testing workflow.

What are the recommended assertion strategies for Renovate E2E tests?

Recommended assertion strategies for Renovate E2E tests include using toMatchObject for partial output matching, importing necessary test helpers, and leveraging dryRunMode to verify updates and skip conditions without side effects.

Why do my Renovate config tests fail to generate expected updates?

Renovate config tests may fail to generate expected updates due to incorrect fixture setup or missing helper imports. Ensure your test properly configures describeWithRenovate and validates actual output using robust assertion strategies.