Skip to content

Test adapter reg key#1580

Merged
paulvanbrenk merged 2 commits intomicrosoft:futurefrom
paulvanbrenk:testAdapterRegKey
May 16, 2017
Merged

Test adapter reg key#1580
paulvanbrenk merged 2 commits intomicrosoft:futurefrom
paulvanbrenk:testAdapterRegKey

Conversation

@paulvanbrenk
Copy link
Copy Markdown
Contributor

If the regkey is set to something, disable the NTVS test adapter.

@paulvanbrenk paulvanbrenk changed the base branch from master to future May 15, 2017 20:55
@paulvanbrenk paulvanbrenk requested a review from billti May 15, 2017 20:56
@paulvanbrenk
Copy link
Copy Markdown
Contributor Author

@msft-cwells can you take a look

Copy link
Copy Markdown
Contributor

@msft-cwells msft-cwells left a comment

Choose a reason for hiding this comment

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

Looks fine. I can make the Queso code/setup set that reg key to disable NTVS test discovery.

return (projectTypeGuids.IndexOf(projectGuid.ToString(), StringComparison.OrdinalIgnoreCase) >= 0);
}

public static bool IsTestAdapaterEnabled()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I just made some changes in my VS PR to cache this value, since "IsTestProject" gets called many times during any single TestAdapter operation. We don't really need to hit the registry every time. You don't need to make a similar change in NTVS, up to you.

@paulvanbrenk paulvanbrenk merged commit 3463fdf into microsoft:future May 16, 2017
@paulvanbrenk paulvanbrenk deleted the testAdapterRegKey branch May 16, 2017 22:29
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.

3 participants