Skip to content

Commit b2f895b

Browse files
committed
feat: Add Create Test Fixture command for all users (v1.6.1)
🧪 New Command: - 'Paths-LE: Create Test Fixture' in Command Palette - Generates complete monorepo test environment with symlinks - Interactive setup with progress indicators - Works for all extension users (not just developers) 📁 Generated Test Environment: - Complete monorepo structure (frontend/backend/shared/tools) - VS Code multi-root workspace configuration - Symlinks for testing canonical path resolution - Cross-package imports and workspace-relative paths - Setup script for symlink creation - Comprehensive documentation and testing guide 🎯 User Experience: - No need to clone repository - Works from VS Code Marketplace installation - Interactive folder selection - Option to open generated workspace immediately - Progress indicators during generation 📚 Documentation: - Updated README with user-friendly testing instructions - Clear distinction between user and developer testing methods - Added command to available commands list 🔧 Technical: - New createTestFixture.ts command module - Proper TypeScript types and error handling - Excluded test fixtures from extension package - Maintains all existing functionality This makes canonical path resolution testing accessible to all users, not just developers who clone the repository.
1 parent daa3e84 commit b2f895b

15 files changed

Lines changed: 498 additions & 47 deletions

File tree

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ dist/__mocks__/
2323
.env.example
2424
.env.local
2525
.env.production
26+
test-fixtures/

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ All notable changes to Paths-LE will be documented here.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.6.1] - 2025-10-16
9+
10+
### Added
11+
12+
- **🧪 Create Test Fixture Command** - New command accessible to all extension users
13+
- `Paths-LE: Create Test Fixture` in Command Palette
14+
- Generates complete monorepo test environment with symlinks
15+
- Includes cross-package imports, workspace configuration, and documentation
16+
- No need to clone repository - works for marketplace users
17+
- Interactive setup with progress indicators and workspace opening
18+
19+
### Improved
20+
21+
- **📚 Enhanced Testing Documentation** - Updated README with user-friendly testing instructions
22+
- **🎯 Better Accessibility** - Test fixture now available to all users, not just developers
23+
824
## [1.6.0] - 2025-10-16
925

1026
### Added

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ C:\Users\Name\data,dir,User data directory
152152

153153
## 📋 Available Commands
154154

155-
Paths-LE provides **8 commands** accessible via Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`):
155+
Paths-LE provides **9 commands** accessible via Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`):
156156

157157
### Core Extraction
158158

@@ -172,6 +172,7 @@ Paths-LE provides **8 commands** accessible via Command Palette (`Ctrl+Shift+P`
172172
- **Open Settings** - Quick access to extension settings
173173
- **Help & Troubleshooting** - Comprehensive in-editor documentation
174174
- **Export/Import/Reset Settings** - Manage extension configuration
175+
- **Create Test Fixture** - Generate a complete test environment for canonical path resolution
175176

176177
## ⚙️ Configuration
177178

@@ -321,7 +322,14 @@ Coverage reports are generated in `coverage/` directory (open `coverage/index.ht
321322

322323
### Testing Canonical Path Resolution
323324

324-
For testing the new monorepo and symlink features:
325+
**For Extension Users** (easiest method):
326+
327+
1. Open Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`)
328+
2. Run `Paths-LE: Create Test Fixture`
329+
3. Select a folder where you want to create the test environment
330+
4. Follow the prompts to open the generated test workspace
331+
332+
**For Developers** (from repository):
325333

326334
```bash
327335
# 1. Setup test environment
@@ -330,12 +338,9 @@ cd test-fixtures/monorepo-test
330338

331339
# 2. Open test workspace
332340
code workspace.code-workspace
333-
334-
# 3. Install extension and test
335-
code --install-extension release/paths-le-1.6.0.vsix
336341
```
337342

338-
See [`test-fixtures/monorepo-test/README.md`](test-fixtures/monorepo-test/README.md) for comprehensive testing guide.
343+
The test fixture includes a complete monorepo with symlinks, cross-package imports, and comprehensive documentation for testing all canonical path resolution features.
339344

340345
---
341346

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publisher": "nolindnaidoo",
44
"displayName": "Paths-LE",
55
"description": "Zero Hassle file path extraction and analysis from JavaScript, TypeScript, JSON, HTML, CSS, TOML, CSV, and ENV files",
6-
"version": "1.6.0",
6+
"version": "1.6.1",
77
"license": "MIT",
88
"author": {
99
"name": "Nolin D Naidoo",
@@ -108,6 +108,11 @@
108108
"command": "paths-le.help",
109109
"title": "%manifest.command.help.title%",
110110
"category": "%manifest.command.category%"
111+
},
112+
{
113+
"command": "paths-le.createTestFixture",
114+
"title": "%manifest.command.createTestFixture.title%",
115+
"category": "%manifest.command.category%"
111116
}
112117
],
113118
"keybindings": [
@@ -141,6 +146,9 @@
141146
},
142147
{
143148
"command": "paths-le.help"
149+
},
150+
{
151+
"command": "paths-le.createTestFixture"
144152
}
145153
]
146154
},

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"manifest.command.settings.import.title": "Import Settings",
1111
"manifest.command.settings.reset.title": "Reset Settings",
1212
"manifest.command.help.title": "Help & Troubleshooting",
13+
"manifest.command.createTestFixture.title": "Create Test Fixture",
1314
"manifest.settings.title": "Paths-LE Settings",
1415
"manifest.settings.copy.clipboard.desc": "Copy extracted paths to clipboard",
1516
"manifest.settings.dedupe.desc": "Remove duplicate paths",

0 commit comments

Comments
 (0)