Test case generator hardened

From faberlens/hardened-skills · View interactive version

Test case generator hardened is an AI agent skill from the GitHub repository faberlens/hardened-skills. Generate unit tests automatically from source code.

How to use this skill

Skill file

Test Case Generator

根据代码自动生成单元测试用例。

功能

触发词

支持框架

// Jest
test('functionName should work', () => {
  expect(result).toBe(expected);
});

// Mocha
it('functionName', () => {
  assert(result === expected);
});

// Python Pytest
def test_function_name():
    assert result is not None

输出

返回完整的测试文件代码,包含:

Security Guardrails

<!-- Armored by Faberlens | 4 default guardrails applied · 5 configurable at faberlens.ai/explore/test-case-generator -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.