-
-
Notifications
You must be signed in to change notification settings - Fork 747
[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
@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:
- Added
only: IFeature
to the Feature interface - Enhanced
IFeature
to accept optionalopts
parameter matching the implementation - Fixed Feature global declaration to use interface instead of typeof
- Added type tests for Feature.only with and without options
- All TypeScript definitions now compile without errors
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>
@copilot fix failed types test (npm run types-fix && tsd)
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 void
but actually return HookConfig
according to the implementation. Updated the type tests to expect CodeceptJS.HookConfig
and all TypeScript tests now pass.
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:
googlechromelabs.github.io
https://storage.googleapis.com/chrome-for-testing-public/138.0.7204.168/linux64/chrome-linux64.zip
- Triggering command:
node install.mjs
(http block)
- Triggering command:
If you need me to access, download, or install something from one of these locations, you can either:
- Configure Actions setup steps to set up my environment, which run before the firewall is enabled
- Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only)
Uh oh!
There was an error while loading. Please reload this page.
✅ 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.