Initial upload: Local LLM Prompt Manager CLI tool
This commit is contained in:
26
prompts/generate-tests.yaml
Normal file
26
prompts/generate-tests.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: generate-tests
|
||||||
|
description: Generate unit tests for code
|
||||||
|
tags: [testing, development, code-generation]
|
||||||
|
variables:
|
||||||
|
- name: code
|
||||||
|
description: The code to generate tests for
|
||||||
|
required: true
|
||||||
|
- name: framework
|
||||||
|
description: Testing framework (pytest, unittest, jest)
|
||||||
|
required: false
|
||||||
|
default: pytest
|
||||||
|
template: |
|
||||||
|
Generate comprehensive unit tests for the following code using {{ framework }}:
|
||||||
|
|
||||||
|
```python
|
||||||
|
{{ code }}
|
||||||
|
```
|
||||||
|
|
||||||
|
Include:
|
||||||
|
- Test cases for normal operations
|
||||||
|
- Edge cases
|
||||||
|
- Error handling
|
||||||
|
- Comments explaining each test
|
||||||
|
|
||||||
|
provider: ollama
|
||||||
|
model: llama3.2
|
||||||
Reference in New Issue
Block a user