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

Update Test Source with Package for Inprogress Tests #1605

Merged
merged 4 commits into from
May 18, 2018
Merged

Update Test Source with Package for Inprogress Tests #1605

merged 4 commits into from
May 18, 2018

Conversation

mayankbansal018
Copy link
Contributor

Description

Update Test Source with Package for InProgress Tests

Related issue

Fixes https://developercommunity.visualstudio.com/content/problem/252751/unit-tests-failing-with-error-testcontainer-was-no.html

@mayankbansal018 mayankbansal018 self-assigned this May 17, 2018
@mayankbansal018 mayankbansal018 changed the title Update Test Source with Package for Inprogress Tests [WIP]Update Test Source with Package for Inprogress Tests May 17, 2018
@mayankbansal018 mayankbansal018 changed the title [WIP]Update Test Source with Package for Inprogress Tests Update Test Source with Package for Inprogress Tests May 17, 2018
@@ -376,7 +376,7 @@ function Publish-Package
Copy-PackageItems "Microsoft.TestPlatform.Build"

# Copy IntelliTrace components.
$intellitraceSourceDirectory = Join-Path $env:TP_PACKAGES_DIR "Microsoft.Internal.Intellitrace\15.5.0-preview-20171207-01\tools"
$intellitraceSourceDirectory = Join-Path $env:TP_PACKAGES_DIR "Microsoft.Internal.Intellitrace\15.8.0-preview-20180518-04\tools"
Copy link
Contributor

@smadala smadala May 18, 2018

Choose a reason for hiding this comment

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

Good change 👍 #Closed

public void RunTestsTestRunCompleteShouldUpdateTestCasesWithPackageIfProvided()
{
var package = "x.apprecipe";
TestRunCompleteEventArgs receivedRunCompleteArgs = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

DRY.

{
Assert.AreEqual(tr.TestCase.Source, package);
}
Assert.IsTrue(receivedRunStatusArgs.ActiveTests == null || receivedRunStatusArgs.ActiveTests.Count() == 0);
Copy link
Contributor

@smadala smadala May 18, 2018

Choose a reason for hiding this comment

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

Assert missing for ActiveTests.Source? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Assert for source is just 2 line above

@@ -799,6 +866,18 @@ private class TestableBaseRunTests : BaseRunTests
{
}

public TestableBaseRunTests(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we reuse above .ctor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was not sure how it will disturb other test, & doing it now will mean I can't get devdiv PR out today.

Assert.AreEqual(tr.TestCase.Source, package);
}
Assert.IsTrue(receivedRunStatusArgs.ActiveTests == null || receivedRunStatusArgs.ActiveTests.Count() == 0);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Assert for source is just 2 line above

@mayankbansal018 mayankbansal018 merged commit 6eda545 into microsoft:master May 18, 2018
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.

2 participants