跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/avsm/ocaml-claude-marketplace/testing

OCaml testing skill for Claude Code: Set up Dune and Alcotest tests

Organize module-level Alcotest suites and a shared runner. The skill covers assertions, isolated test cases, initialization order, and Dune commands.

中文

Install in Claude Code

Use a practice OCaml project with Dune and Alcotest to run the tests. A short function signature is enough to plan the test structure.

  1. Download the repository snapshot at the linked commit. Copy plugins/ocaml-dev/skills/testing/ into .claude/skills/testing/ in your practice project and keep its reference files.
  2. Check that SKILL.md is directly inside .claude/skills/testing/. Open Claude Code from the project root.
  3. Enter /testing to try the example below.

Example task

Run /testing for Counter.total : int list -> int. Ask for tests that check [2, 3] returns 5 and an empty list returns 0. Request the files and command.

What to check

The test suite names both cases, connects them to the runner, and identifies dune test as the project-level command.

Original SKILL.md on GitHub · Updated 2026-11-11

Frequently asked question

Can separate OCaml modules share a test runner?

Yes. Each test module can export its own suite. Combine the suites in one runner, where shared setup can be configured if the project needs it.

词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯