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

Allow TranslationLayer to specify Diag parameters #296

Merged
merged 3 commits into from
Dec 23, 2016
Merged

Allow TranslationLayer to specify Diag parameters #296

merged 3 commits into from
Dec 23, 2016

Conversation

saikrishnav
Copy link
Member

Log message for logging file of test host

Log message for logging file of test host
// Can only do this after InitializeCommunication because TestHost cannot "Send Log" unless communications are initialized
if (!string.IsNullOrEmpty(EqtTrace.LogFile))
{
requestHandler.SendLog(TestMessageLevel.Informational, string.Format("Logging TestHost Diagnostics in file: {0}", EqtTrace.LogFile));
Copy link
Contributor

Choose a reason for hiding this comment

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

This will show up in IDE, console runner. Does it require localization?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. It does not. It only shows up in IDE if diagnostics are enabled.

Copy link
Member Author

Choose a reason for hiding this comment

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

And Manish's Verbose log is not localized - so we don't have to. With TestWindow, I am planning to add this if "VS_UTE_DIAGNOSTICS = 1" which definitely does not require localization.

@@ -17,25 +17,30 @@ namespace Microsoft.TestPlatform.VsTestConsole.TranslationLayer.UnitTests
[TestClass]
public class VsTestConsoleWrapperTests
{
private readonly IVsTestConsoleWrapper consoleWrapper;
private IVsTestConsoleWrapper consoleWrapper;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because we need to reinitialize these things in TestInitialize everytime to reset stuff.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why in test initialize? We could do those resets in constructor.

{
new TestCase("a.b.c", new Uri("d://uri"), "a.dll"),
new TestCase("d.e.f", new Uri("g://uri"), "d.dll")
};

public VsTestConsoleWrapperTests()
private ConsoleParameters consoleParamters;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: spell

{
return logFilePath;
}
set
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: add a blank line before set.

Copy link
Member Author

Choose a reason for hiding this comment

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

Why? - Is this a style cop/resharper thing?

Copy link
Contributor

@codito codito left a comment

Choose a reason for hiding this comment

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

Looks good. Request few minor changes.

Sai Krishna Vajjala added 2 commits December 23, 2016 10:51
@saikrishnav saikrishnav merged commit dffd8fb into microsoft:master Dec 23, 2016
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