Skip to content

Conversation

safern
Copy link
Member

@safern safern commented Jul 15, 2021

While adding some rules and running tests I noticed that the new tests for assembly identity rule bumped the execution time from ~10s to ~30-40s in the console and to 1+min in VS. Also depending on machine state sometimes they failed when switching branches.

This was causing tests to generate a project and build it to get some dlls out and then load them, which for testing purposes is not worth it as it brings some flakiness, we should test rules with in memory assemblies as we just want to test that the rules are interpreting the metadata correctly.

Also I did some cleanup on the rule and improved a diagnostic message.

@safern safern requested review from Anipik and ericstj July 15, 2021 05:34
Copy link
Contributor

@Anipik Anipik left a comment

Choose a reason for hiding this comment

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

left 2 comments, other than that looks good

@safern safern merged commit 131ff51 into dotnet:main Jul 16, 2021
@safern safern deleted the RewriteAssemblyIdentityTests branch July 16, 2021 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants