-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
Add folder name to test weaver #1298
Conversation
@@ -12,13 +12,20 @@ public static TestResult ExecuteTestRun( | |||
bool runPeVerify = true, | |||
Action<ModuleDefinition>? afterExecuteCallback = null, | |||
Action<ModuleDefinition>? beforeExecuteCallback = null, | |||
string? folderName = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you move this new parameter to the end, it should be fully backwards compatible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have though about it. You mean behind the assemblyName or really at the end? On the long term, I think it's better to keep them together, but short-term would be best to add at the very end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree the folderName
parameter should be put at the very end, this avoids a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a very similar issue in InlineIL, and I had to basically rewrite WeaverTestHelper
, so I completely understand the need for this change. 🙂
@@ -12,13 +12,20 @@ public static TestResult ExecuteTestRun( | |||
bool runPeVerify = true, | |||
Action<ModuleDefinition>? afterExecuteCallback = null, | |||
Action<ModuleDefinition>? beforeExecuteCallback = null, | |||
string? folderName = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree the folderName
parameter should be put at the very end, this avoids a breaking change.
Updated the PR based on feedback. Thanks! |
See #1297