[WIP] [FR] - Support feature.only like Scenario.only#5087
Conversation
Co-authored-by: kobenguyent <[email protected]>
|
@copilot add types to Feature.only so that no typescript complains, add types tests as well |
Added TypeScript types for Feature.only with comprehensive type tests. The changes include:
Commit: 0a2650e |
Co-authored-by: kobenguyent <[email protected]>
|
@copilot fix failed types test (npm run types-fix && tsd) |
Co-authored-by: kobenguyent <[email protected]>
Fixed the failing TypeScript tests by correcting the expected return types for hook functions. The issue was that Before, BeforeSuite, After, and AfterSuite hooks were expected to return Commit: 7deb2cf Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
✅ Complete Implementation
Feature.only functionality successfully implemented and tested
🎯 Core Implementation
Feature.onlymethod inlib/mocha/ui.js^FeatureTitle:to match all scenarios in the target featureFEATURE_ONLY=trueenvironment variable for detectionScenario.onlyfor consistency🧪 Comprehensive Testing
📚 Documentation Updated
Feature.onlyto docs/basics.md Skipping section✅ Verified Behavior
Result: Only scenarios in
Feature.onlyexecute, all others are skipped. Works with complex feature names, special characters, and edge cases. Maintains full backward compatibility.Fixes #5086.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.