commit 458d0633fb68a44f1736c5e44f55ea09694cf790 Author: Zhongwei Li Date: Sat Nov 29 18:07:38 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..8da76df --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "test-file", + "description": "Generate comprehensive tests for a specific file", + "version": "1.0.0", + "author": { + "name": " Anand Tyagi", + "url": "https://github.com/ananddtyagi" + }, + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..940ea2c --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# test-file + +Generate comprehensive tests for a specific file diff --git a/commands/test-file.md b/commands/test-file.md new file mode 100644 index 0000000..a10891f --- /dev/null +++ b/commands/test-file.md @@ -0,0 +1,20 @@ +--- +allowed-tools: Bash(find:*), Bash(ls:*) +description: Generate comprehensive tests for a specific file +--- + +## Your task + +Generate comprehensive unit tests for the file: @$ARGUMENTS + +Requirements: +- Use the existing testing framework in this project +- Include edge cases and error scenarios +- Follow the project's testing conventions +- Aim for high test coverage +- Include both positive and negative test cases + +## Project context + +- Existing test files: !`find . -name "*.test.*" -o -name "*.spec.*" | head -10` +- Package.json testing setup: @package.json \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..e1c52b6 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:ccplugins/awesome-claude-code-plugins:plugins/test-file", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "60a7741512e4df6f8941dfd495b49ea6f327042c", + "treeHash": "cf6b1911b73f82fe664050966a2f8aa5d3ca0fc55857c277e093dc592f10580b", + "generatedAt": "2025-11-28T10:14:35.003268Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "test-file", + "description": "Generate comprehensive tests for a specific file", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "56ca270cb7667161f274f7c85065d00f1a629dc53120d60208c1ed513356fd1b" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "f236d859b36c32935d05dad54230cd6d48f6d25af722126b2f77201846decc30" + }, + { + "path": "commands/test-file.md", + "sha256": "a0269eb6119b44b0caffdcba2ff812ef332256edb44c4b529e09390586023994" + } + ], + "dirSha256": "cf6b1911b73f82fe664050966a2f8aa5d3ca0fc55857c277e093dc592f10580b" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file