嵌入式单元测试生成器(embedded-unit-tester)

#一人分享一个skill#
name: embedded-unit-tester
description: 为嵌入式C函数生成单元测试代码,适配Unity/Ceedling测试框架

type: test-generation
parameters:
  - name: test_framework
    type: string
    default: Unity
    description: 测试框架(Unity, Ceedling, Google Test for Embedded)
  - name: function_path
    type: string
    required: true
    description: 需要测试的函数文件路径
  - name: functions_to_test
    type: array
    description: 特定需要测试的函数名列表(默认测试所有函数)
生成内容:
测试用例代码,覆盖正常情况、边界情况和错误情况
测试夹具(设置 / 拆卸函数)
模拟硬件接口的桩函数(stub)
测试报告生成配置
CI/CD 集成脚本TRAE SOLO
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务