Skip to content
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

Fix error in use of --extensionDirectory #1625

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Fix error in use of --extensionDirectory #1625

merged 1 commit into from
Feb 10, 2025

Conversation

CharliePoole
Copy link
Member

Fixes #1613

@CharliePoole CharliePoole merged commit 7db08cf into main Feb 10, 2025
4 checks passed
@CharliePoole CharliePoole deleted the issue-1613 branch February 10, 2025 19:53
@CharliePoole CharliePoole requested review from manfred-brands and veleek and removed request for manfred-brands February 10, 2025 22:31
@CharliePoole
Copy link
Member Author

@veleek Essentially, this is a sort of spike to find out what works for the user. I already merged it to make it available. Two more stages will follow: (1) changes to our CI recipe to allow automated testing of this sort of change and (2) adding those tests and refining the fix based on feedback.

For that reason, even though this PR is already merged, I'd like you to review it, which GitHub seems to allow. I'll also ask you to review the subsequent PRs in this series as they come along.

If you're not able to do this one, as usual, just let me know and I'll re-assign it.

@veleek
Copy link
Member

veleek commented Feb 12, 2025

I will try to get this reviewed today or tomorrow.

@CharliePoole
Copy link
Member Author

Cool. Also, chime in on the issue about how this should really work after you've looked at it. I'm leaning toward option 2 myself.

@@ -71,7 +71,7 @@ public ConsoleRunner(ITestEngine engine, ConsoleOptions options, ExtendedTextWri
foreach (string extensionDirectory in extensionPath.Split(new[] { Path.PathSeparator }, StringSplitOptions.RemoveEmptyEntries))
_extensionService.FindExtensionAssemblies(extensionDirectory);

foreach (string extensionDirectory in _options.ExtensionDirectories)
foreach (string extensionDirectory in _options.ExtensionDirectories)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both changes in this file look like unintentiontal whitespace additions.

if (_extensionService != null)
{
foreach (IDriverFactory factory in _extensionService.GetExtensions<IDriverFactory>())
_factories.Add(factory);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be switched to use _factories.AddRange(...) instead of manually iterating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extensions are no longer loading as is currently documented
2 participants