-
Notifications
You must be signed in to change notification settings - Fork 323
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
Update Test Source with Package for Inprogress Tests #1605
Conversation
@@ -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" |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); | ||
} |
There was a problem hiding this comment.
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
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