-
-
Notifications
You must be signed in to change notification settings - Fork 745
[WIP] [FR] - Support feature.only like Scenario.only #5087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: kobenguyent <7845001+kobenguyent@users.noreply.github.com>
@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 <7845001+kobenguyent@users.noreply.github.com>
@copilot fix failed types test (npm run types-fix && tsd) |
Co-authored-by: kobenguyent <7845001+kobenguyent@users.noreply.github.com>
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.only
method inlib/mocha/ui.js
^FeatureTitle:
to match all scenarios in the target featureFEATURE_ONLY=true
environment variable for detectionScenario.only
for consistency🧪 Comprehensive Testing
📚 Documentation Updated
Feature.only
to docs/basics.md Skipping section✅ Verified Behavior
Result: Only scenarios in
Feature.only
execute, 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.