Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit d7f44b9

Browse files
committed
feat(code): create test structure from specs
1 parent 1042eb8 commit d7f44b9

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 'ai-driven-dev-prompts'
22
title: 'AI Driven Dev Prompts'
33
description: The best collection of prompts for developers.
4-
version: 0.3.34
4+
version: 0.3.35
55
author: alexsoyes
66
website: https://alexsoyes.com

ai-driven-dev-prompts/package.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ matches:
6767
Important rules:
6868
- Do not change the logic of the code.
6969
- Input and output of the code should remain the same.
70+
- trigger: ':codeTestingCreateTestStructure'
71+
form: |
72+
@workspace Generate testing structure only using libs from "[[packagejson_____composerjson]]" file for those specs:
73+
74+
---
75+
[[test_cases]]
76+
---
77+
form_fields:
78+
test_cases:
79+
multiline: true
80+
packagejson_____composerjson:
81+
type: choice
82+
values: |-
83+
package.json
84+
composer.json
7085
- trigger: ':codeTestingSetupStructure'
7186
form: |
7287
@workspace Create a new unit test structure for

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ai-driven-dev-community",
3-
"version": "0.3.34",
3+
"version": "0.3.35",
44
"description": "From prompts in Readme to Espanso text expander!",
55
"main": "index.js",
66
"directories": {

ressources/prompts/code.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,22 @@ Important rules:
151151

152152
## 🧪 Testing
153153

154+
### Create test structure from test cases `:codeTestingCreateTestStructure`
155+
156+
**Description:**
157+
158+
Create a test structure from test cases.
159+
160+
**Prompt**:
161+
162+
```text
163+
@workspace Generate testing structure only using libs from "[[package.json | composer.json]]" file for those specs:
164+
165+
---
166+
[[Test cases]]
167+
---
168+
```
169+
154170
### Create new unit tests `:codeTestingSetupStructure`
155171

156172
**Description:**

0 commit comments

Comments
 (0)