test

Create and run unit, integration, and service tests for OpenMeter.

2.2k|199|Updated Jun 6, 2023
One-click install
npx skills add https://github.com/openmeterio/openmeter --skill test-openmeterio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/openmeterio/openmeter/tree/main/.agents/skills/test
Command: npx skills add https://github.com/openmeterio/openmeter --skill test-openmeterio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing and running tests for OpenMeter services, ensuring code quality and reliability.

Core Features & Use Cases

  • Test Generation: Provides guidance and patterns for writing unit, integration, and service tests.
  • Test Execution: Details commands for running all tests, specific test suites, and end-to-end tests.
  • Use Case: When developing a new feature for the OpenMeter billing module, use this Skill to generate and run comprehensive tests that cover various scenarios, including validation errors and successful operations.

Quick Start

Use the test skill to write a unit test for the CreateMeter function.

Frequently Asked Questions about test

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

FAQPage Schema
How do I write unit tests for OpenMeter services?

To write unit tests for OpenMeter services, use established test generation patterns that adhere to project conventions for file locations and naming, ensuring your code meets reliability standards.

What is the best way to structure integration tests in OpenMeter?

Structuring integration tests in OpenMeter involves following specific project suite patterns and utilizing time control utilities to manage complex testing scenarios and validation errors effectively.

Can I run specific test suites for OpenMeter modules?

Yes, you can run specific test suites for OpenMeter modules by executing designated commands that target individual suites, comprehensive tests, or end-to-end scenarios as needed.

Does OpenMeter testing support time control utilities for service tests?

Yes, OpenMeter testing supports time control utilities within service tests, allowing developers to manipulate time dependencies when validating complex scenarios and successful operations.

When should I use service tests instead of unit tests in OpenMeter?

You should use service tests instead of unit tests in OpenMeter when you need to validate comprehensive feature operations across various scenarios, including successful operations and validation errors.