-
Notifications
You must be signed in to change notification settings - Fork 325
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
Run multiple target frameworks and architectures in single vstest.console #3412
Merged
nohwnd
merged 142 commits into
microsoft:main
from
nohwnd:multi-tfm-run-in-vstestconsole
May 23, 2022
+4,449
−2,468
Merged
Changes from 140 commits
Commits
Show all changes
142 commits
Select commit
Hold shift + click to select a range
f70b70b
Add test
nohwnd 91c2628
Merge branch 'main' into multi-tfm-run-in-vstestconsole
nohwnd a1c9028
Passthru options. Discover request needs to fix settings on criteria …
nohwnd 409cca3
Discovery partially works, I don't update the testsettings in the req…
nohwnd 8e5a289
Add tests for run and discovery with different TFMs.
nohwnd 8ce64ae
First test rewrite.
nohwnd 5d2f4ee
test sessions start
nohwnd 8ec7a91
Manually test console mode a little bit
nohwnd 21eee17
Add nested types and split up
nohwnd 6549db9
Test sessions, and rework a bit
nohwnd 3ca787d
Fix programmer tests
nohwnd 2a85b51
Merge branch 'main' into multi-tfm-run-in-vstestconsole
nohwnd 14e66d8
Skip source validation and enable checks
nohwnd a8f5da8
Fix settings check in test sessions, and remove rest of review points
nohwnd dbfdcd3
Fixing tests
nohwnd a487325
Fix some unit tests
nohwnd 88ae4ad
Unit tests fixed
nohwnd d7c059c
Build
nohwnd 4d8054d
Merge branch 'main' into multi-tfm-run-in-vstestconsole
nohwnd 9e1f93a
Apply suggestions from code review
nohwnd 1d35dc5
Update src/Microsoft.TestPlatform.CrossPlatEngine/Utilities/SourceDet…
nohwnd 66283a0
Merge branch 'main' into multi-tfm-run-in-vstestconsole
nohwnd dfb2e81
Fix acceptance tests.
nohwnd aff2f4a
Apply suggestions from code review
nohwnd 83a9fc6
Remove more workspace
nohwnd 07e4782
Merge branch 'fix-acceptance' of https://github.com/nohwnd/vstest int…
nohwnd 7536588
Revert non-optmize on Release
nohwnd a94b1bd
More fixes
nohwnd ef668f0
Update test/Microsoft.TestPlatform.TestUtilities/IntegrationTestBase.cs
nohwnd 4fb3b26
Merge branch 'main' into fix-acceptance
nohwnd 8b04531
Fix unit test
nohwnd e57fe1d
Missing null operator
nohwnd 98fa6b9
Revert incorrect rename
nohwnd 6342ee4
Fix review remarks
nohwnd 4f95d81
Build failures
nohwnd 0f53078
Merge branch 'main' into multi-tfm-run-in-vstestconsole
nohwnd b62a26d
Upgrade
nohwnd c7de6ad
Merge branch 'fix-acceptance' into net6-tests
nohwnd f15ade9
Upgrade tests
nohwnd 115b842
Merge branch 'main' into net6-tests
nohwnd 100b4dd
Skip web tests locally
nohwnd cdaf3d0
Apply suggestions from code review
nohwnd 390d80b
Skip in non-ci
nohwnd 543c21c
Change order of tests to run from fastest
nohwnd 76021d2
Newer approach to reference assemblies on MacOS and Linux
nohwnd 4a79dc0
Merge branch 'newer-reference-assemblies' into net6-tests
nohwnd de7aefc
Revert "Change order of tests to run from fastest"
nohwnd 1bddbc8
Acceptance for net48
nohwnd c4e7ff1
Fix filter
nohwnd bbd4473
Apply suggestions from code review
nohwnd 7c6d946
Update scripts/build/TestPlatform.Settings.targets
nohwnd f38616a
Remove taking target framework and runtime from env variables because…
nohwnd c9dbf4e
Matrix for mstest wip
nohwnd 79117c9
Merge branch 'main' into test-matrix
nohwnd ecdb18e
MSTest adapter tests
nohwnd a65c00a
Add vstest console data source, even though it is names translation l…
nohwnd 0fc39cf
Second test
nohwnd 3b14bb4
Merge branch 'main' into test-matrix
nohwnd aaecf7f
Remove unused field
nohwnd 82cb607
Translation layer x vstest.console
nohwnd 07cdf1c
Fixup console run
nohwnd 1b0202a
Runs tests from the big data source, but test sdk is not used.
nohwnd d556525
Compose path to testhost + adapter.
nohwnd d243b59
One big unified data source. Still no version filtering.
nohwnd 1d22cd9
Remove quote path trimming.
nohwnd 82ad320
Some tests run.
nohwnd 5216498
More fun with sources.
nohwnd 0f087c0
Tests tests.
nohwnd 63e6275
Merge branch 'main' into test-matrix
nohwnd 1a45042
merge
nohwnd 6e84158
Revert unnecessary renames
nohwnd 2b3e039
Ignore strong naming in tests
nohwnd 5987391
Add tags
nohwnd 0e4ce5a
Fix console path
nohwnd 969c2b3
fix
nohwnd 8423de3
merge main
nohwnd 9894fa3
CI cleanup always
nohwnd 5af7437
Print free disk space
nohwnd 81c0b1b
Whitespace and so on
nohwnd eff69de
Missing temp dir
nohwnd 874f1c2
Merge branch 'main' into test-matrix
nohwnd 5f3f5c2
Fix env variables
nohwnd a1a461c
Fixes I feel like I did before
nohwnd 5a19d19
Touch
nohwnd df6a0f2
Merged
nohwnd 0075b0b
Remove comment, and revert back to using TempDirectory
nohwnd 85085dc
Fix quoting
nohwnd efc810f
Use Nuget.Versioning rather than semver, and revert strong name warni…
nohwnd 02c7d41
Fix tests
nohwnd 6bb4103
Merge branch 'test-matrix' into multi-tfm-run-in-vstestconsole
nohwnd 57be8db
Fix test
nohwnd ab3093f
Fix
nohwnd b1e02f5
Fix
nohwnd 3e637fc
Merge branch 'test-matrix' of https://github.com/nohwnd/vstest into t…
nohwnd a828bbc
Merge branch 'test-matrix' into multi-tfm-run-in-vstestconsole
nohwnd d33a3f2
Fix build
nohwnd 2ac14cb
Free space
nohwnd 020abf0
Free space
nohwnd 55e8714
Add results directory to blame
nohwnd ebb15a1
Fix
nohwnd 8c0cc0c
Add tools and fix gitingore
nohwnd 23b5f66
Fix build
nohwnd 1d9003c
Add tools and fix gitingore
nohwnd a8e8476
Merge branch 'main' into test-matrix
nohwnd 25c5802
Make Cancel Discovery faster and more reliable
nohwnd 0e063a4
Merge branch 'discovery-cancel-faster-better-more-reliable' into test…
nohwnd 4dd10bc
Add fluent assertions
nohwnd fd235c1
Cancellation
nohwnd 68c4e4a
Merge
nohwnd 70f4e81
Merge branch 'test-matrix' into multi-tfm-run-in-vstestconsole
nohwnd b346a3e
Renames and fixes
nohwnd 5e81462
Merge branch 'main' into multi-tfm-run-in-vstestconsole
nohwnd a24d1b1
Add debugger info
nohwnd 6e0ef0a
Merged
nohwnd 6933548
Half merged but is missing some test fixes
nohwnd 65e1e0f
Programmer tests build and run, I think I left some not passing befor…
nohwnd 0b25dff
Try with test sessions
nohwnd 0f1e8bd
Fix programmer tests and add DISABLE_MULTI_TFM
nohwnd f7b8e94
Re-enable warnings for multtfm when there are settings forcing framew…
nohwnd 095345d
Merge branch 'main' into multi-tfm-run-in-vstestconsole
nohwnd 08d86c4
Smaller PR comments addressed
nohwnd 3c22472
Rewrite ParallelOperationManagerTests because that class fully changed
nohwnd d624583
Fix build warnings
nohwnd da6150c
Remove test checking that we set custom launcher on default runtime p…
nohwnd f997480
Fix NOMERGE unit tests
nohwnd 8734b3a
Fix runsettings tests
nohwnd 2980a29
More unit tests
nohwnd 94bc0f1
Fix more unit tests
nohwnd 2f6c67a
Fix unit test
nohwnd 08506a8
Update resources
nohwnd 750c8bb
Fix collection modified exception
nohwnd fe4218e
Don't return true where you should not
nohwnd a6dbcf2
Fix assignment
nohwnd dbb04f6
Fix tests
nohwnd d6d47a5
up versions for matrix
nohwnd 902e435
More PR feedbacks
nohwnd 5e2f9b0
up internal version and remove debug attribute
nohwnd 287b4e6
yah for the extra parent
nohwnd 7dcf780
Fix testhost startup performance and choosing x86 for mixed runs.
nohwnd da0cbdf
Clean up HandlePartialRunComplete, and fix unit tests
nohwnd 6e49ebe
Fix acceptance tests
nohwnd 6f5bedb
Merge branch 'main' into multi-tfm-run-in-vstestconsole
nohwnd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,6 @@ public class UnitTest1 | |
[TestMethod] | ||
public void TestMethod1() | ||
{ | ||
// Thread.Sleep(1000); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/Microsoft.TestPlatform.Common/Hosting/ITestRuntimeProviderManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System.Collections.Generic; | ||
|
||
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Host; | ||
|
||
namespace Microsoft.VisualStudio.TestPlatform.Common.Hosting; | ||
|
||
internal interface ITestRuntimeProviderManager | ||
{ | ||
ITestRuntimeProvider GetTestHostManagerByRunConfiguration(string runConfiguration); | ||
ITestRuntimeProvider GetTestHostManagerByRunConfiguration(string runConfiguration, List<string> sources); | ||
ITestRuntimeProvider GetTestHostManagerByUri(string hostUri); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe
ICollection<string>
orIReadOnlyCollection<string>
? OrIList
/IReadonlyList
if we need the indexer.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.
This is an internal interface; I don't want to gold plate it. Keeping as is, unless you feel strongly about this.