Skip to content

Commit 43f81cb

Browse files
committed
feat: make test optional
1 parent 237da66 commit 43f81cb

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.agents/skills/parser-creator/SKILL.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Creates SC4S syslog-ng parsers. Use when the user wants to create a
55

66
# Parser Creator
77

8-
You can use only command to run the unit tests `poetry run pytest test-name -v -s --tb=short -n=0`
8+
You can use only command to run the unit tests `poetry run pytest test-name -v -s --tb=short -n=0 -k 'not lite and not name_cache'`
99

1010
## Goal
1111

@@ -256,13 +256,25 @@ block parser app-syslog-vendor_product() {
256256
};
257257
```
258258

259-
### Step 4 - Create unit test
259+
### Step 4 - Create unit test (optional)
260+
261+
Ask the user whether they want to create a unit test. Use this prompt:
262+
```
263+
Do you also want to create a unit test for this parser?
264+
```
260265

261266
Create a unit test for the new parser. Testing instructions: [testing-parsers](./references/testing-parsers.md).
262267

263-
### Step 5 - Run parser tests
268+
### Step 5 - Run parser tests (optional)
269+
270+
This step applies only if Step 4 was not skipped.
271+
272+
Ask the user whether they want to run the unit tests. Use this prompt:
273+
```
274+
We use Docker Compose to run containerized SC4S and Splunk instances for running unit tests. If you do not have Docker Compose or do not want to run the unit tests, skip this step.
275+
```
264276

265-
Run the new test using `poetry run pytest test-name -v -s --tb=short -n=0` command and verify the parser works correctly.
277+
Run the new test using `poetry run pytest test-name -v -s --tb=short -n=0 -k 'not lite and not name_cache'` and verify the parser works correctly.
266278

267279
## Workflow Example
268280

0 commit comments

Comments
 (0)