Skip to content

Commit 668d7c5

Browse files
authored
Reqs uutstub flag (#316)
Adds options based on setting to allow uut stubs in test generation.
1 parent f2584b7 commit 668d7c5

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the "vectorcastTestExplorer" extension will be documented in this file.
44

5+
6+
## [1.0.29] - 2026-02-25
7+
8+
### Added
9+
- Added setting to allow toggling UUT stubbing for generated requirements-driven tests
10+
511
## [1.0.28] - 2026-01-27
612

713
### Added

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vectorcasttestexplorer",
33
"displayName": "VectorCAST Test Explorer",
44
"description": "VectorCAST Test Explorer for VS Code",
5-
"version": "1.0.28",
5+
"version": "1.0.29",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
@@ -494,6 +494,12 @@
494494
"default": false,
495495
"description": "Do not provide additional test examples to the LLM during test generation"
496496
},
497+
"vectorcastTestExplorer.reqs2x.enableUutStubbing": {
498+
"type": "boolean",
499+
"order": 8,
500+
"default": true,
501+
"description": "Enable UUT stubbing during requirements-based test generation"
502+
},
497503
"vectorcastTestExplorer.reqs2x.generationLanguage": {
498504
"type": "string",
499505
"order": 9,

src/requirements/requirementsOperations.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ export async function generateTestsFromRequirements(
378378

379379
const noTestExamples = config.get<boolean>("noTestExamples", false);
380380
const reorder = config.get<boolean>("reorder", true);
381+
const allowUUTStubs = config.get<boolean>("enableUutStubbing", true);
381382

382383
const retries = config.get<number>("retries", 2);
383384
if (retries < 1) {
@@ -404,6 +405,7 @@ export async function generateTestsFromRequirements(
404405
...(decomposeRequirements ? [] : ["--no-requirement-decomposition"]),
405406
...(noTestExamples ? ["--no-test-examples"] : []),
406407
...(!reorder ? ["--no-reorder"] : []),
408+
...(allowUUTStubs ? ["--allow-uut-stubs"] : ["--no-allow-uut-stubs"]),
407409
"--allow-partial",
408410
"--json-events",
409411
...(enableRequirementKeys ? ["--requirement-keys"] : []),

0 commit comments

Comments
 (0)