Skip to content

Conversation

@vritant24
Copy link
Member

@vritant24 vritant24 commented Oct 3, 2020

This is to enable the VSTest V2 task scenario, where the code calling into the vstest.console cannot be overridden.

TODO:

  1. Validate vstest task with this change on existing repos
  2. Validate VS scenarios

@nohwnd nohwnd marked this pull request as draft October 5, 2020 08:02
@nohwnd
Copy link
Member

nohwnd commented Oct 5, 2020

Making this a draft because it looks like work in progress.

@vritant24 vritant24 marked this pull request as ready for review October 5, 2020 22:12
@vritant24 vritant24 requested a review from AbhitejJohn October 5, 2020 22:12
Copy link
Contributor

@AbhitejJohn AbhitejJohn left a comment

Choose a reason for hiding this comment

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

Are you planning to couple this with the VSUnitTesting changes for 16.9?

@vritant24 vritant24 requested a review from nohwnd October 10, 2020 00:42
@vritant24
Copy link
Member Author

Are you planning to couple this with the VSUnitTesting changes for 16.9?

I planned for the VSUnitTesting side changes to go in separately, so that this can be available to users through the Microsoft.TestPlatform changes earlier


if (!commandLineOptions.IsDesignMode)
// get Fakes data collector settings
if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("_Disable_Fakes_DataCollector_Configuration")))
Copy link
Member

Choose a reason for hiding this comment

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

Who would use this? We usually name env variables like this VSTEST__ (e.g. VSTEST_RUNNER_DEBUG`, and spell them in uppercase, in case some OSes would consider spelling when grabbing the variable. We also consider 0 to be off, not just null.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is for the users in the vstest task. By Shreyas' suggestion, if something is being enabled that wasn't before, it's best to have a fallback to be able to replicate previous behavior. I can change the var name and behavior to meet the standard in the vstest repo

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.

4 participants