Skip to content

Re-enable MSBuildWorkspaceTests.TestEditorConfigDiscovery#36345

Merged
jasonmalinowski merged 3 commits intodotnet:masterfrom
jasonmalinowski:unskip-test
Jun 15, 2019
Merged

Re-enable MSBuildWorkspaceTests.TestEditorConfigDiscovery#36345
jasonmalinowski merged 3 commits intodotnet:masterfrom
jasonmalinowski:unskip-test

Conversation

@jasonmalinowski
Copy link
Copy Markdown
Member

@jasonmalinowski jasonmalinowski commented Jun 11, 2019

Besides unskipping the test, we also had to update our test harness. We have to locate an MSBuild on the machine which is suitable for our use, once we found one we just used that. On our machines we have both 15.9 and 16.2 (as of this writing), but we always picked 15.9. Now, we look for the highest version and will add binding redirects to that one; we can also filter tests to a specific minimum version if necessary. It's critical we always find the highest version when first setting up -- we have to add binding logic to make sure we load that; if we loaded a lower version for a test that had a lower minimum version, we wouldn't be able to run another test later.

@jasonmalinowski jasonmalinowski self-assigned this Jun 11, 2019
@jasonmalinowski jasonmalinowski marked this pull request as ready for review June 12, 2019 23:08
@jasonmalinowski jasonmalinowski requested a review from a team as a code owner June 12, 2019 23:08
@jasonmalinowski
Copy link
Copy Markdown
Member Author

We believe the machines are now updated so the hope is this should work.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I pulled this out to isolate the "have we already checked" cache since it was getting a bit screwy with all of the static bits. Unfortunately this made the diff icky.

@jasonmalinowski
Copy link
Copy Markdown
Member Author

Tagging @jinujoseph for M2 approval although this is a test-only change.

@jinujoseph jinujoseph added this to the 16.2.P4 milestone Jun 14, 2019
@jinujoseph
Copy link
Copy Markdown
Contributor

pre-approved

We have need for certain tests to only run on 16.2 or higher; so this
adds support to specify that.
Our integration test framework intentionally writes an .editorconfig
into the root of %TEMP% so we don't have integration tests depending
on an .editorconfig somewhere else on the machine. This causes the unit
tests running to discover a second file. Filter that one out.
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.

4 participants