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

Add folder name to test weaver #1298

Merged
merged 2 commits into from
Sep 14, 2024
Merged

Conversation

GeertvanHorrik
Copy link
Member

See #1297

@@ -12,13 +12,20 @@ public static TestResult ExecuteTestRun(
bool runPeVerify = true,
Action<ModuleDefinition>? afterExecuteCallback = null,
Action<ModuleDefinition>? beforeExecuteCallback = null,
string? folderName = null,
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

@ltrzesniewski ltrzesniewski left a 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,
Copy link
Member

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.

@GeertvanHorrik
Copy link
Member Author

Updated the PR based on feedback. Thanks!

@tom-englert tom-englert merged commit 0713ecf into master Sep 14, 2024
14 checks passed
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.

None yet

3 participants