·python-test-micrometer-testing-metrics
</>

python-test-micrometer-testing-metrics

使用 SimpleMeterRegistry 在单元和集成测试中测试自定义 Micrometer 指标。在为记录指标的服务编写测试、在操作后验证指标值、测试百分位数和直方图或在没有完整 Spring 上下文的情况下断言指标行为时使用。对于确保指标准确记录在业务逻辑中至关重要。

4安装·0热度·@dawiddutoit

安装

$npx skills add https://github.com/dawiddutoit/custom-claude --skill python-test-micrometer-testing-metrics

如何安装 python-test-micrometer-testing-metrics

通过命令行快速安装 python-test-micrometer-testing-metrics AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill python-test-micrometer-testing-metrics
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dawiddutoit/custom-claude。

SKILL.md

查看原文

Quick Start → What Is This | When to Use | Simple Example

How to Implement → Step-by-Step | Test Registry Setup | Examples

Testing metrics requires explicit registry setup since Micrometer doesn't auto-wire in unit tests. This skill shows how to verify that custom metrics are correctly recorded in unit tests (SimpleMeterRegistry), integration tests (@AutoConfigureMetrics), and percentile/histogram calculations.

使用 SimpleMeterRegistry 在单元和集成测试中测试自定义 Micrometer 指标。在为记录指标的服务编写测试、在操作后验证指标值、测试百分位数和直方图或在没有完整 Spring 上下文的情况下断言指标行为时使用。对于确保指标准确记录在业务逻辑中至关重要。 来源:dawiddutoit/custom-claude。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dawiddutoit/custom-claude --skill python-test-micrometer-testing-metrics
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-11

Browse more skills from dawiddutoit/custom-claude

快速解答

什么是 python-test-micrometer-testing-metrics?

使用 SimpleMeterRegistry 在单元和集成测试中测试自定义 Micrometer 指标。在为记录指标的服务编写测试、在操作后验证指标值、测试百分位数和直方图或在没有完整 Spring 上下文的情况下断言指标行为时使用。对于确保指标准确记录在业务逻辑中至关重要。 来源:dawiddutoit/custom-claude。

如何安装 python-test-micrometer-testing-metrics?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill python-test-micrometer-testing-metrics 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dawiddutoit/custom-claude