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

Added support for ManagedType and ManagedClass #737

Merged
merged 22 commits into from Nov 24, 2020
Merged

Conversation

@Haplois
Copy link
Member

@Haplois Haplois commented Oct 22, 2020

microsoft/vstest#2611 needs to be merged, and published into the package repository before merging this PR.

Haplois added 3 commits Oct 22, 2020
@microsoft microsoft deleted a comment from azure-pipelines bot Oct 22, 2020
@microsoft microsoft deleted a comment from azure-pipelines bot Oct 22, 2020
@microsoft microsoft deleted a comment from azure-pipelines bot Oct 22, 2020
Haplois added 3 commits Oct 22, 2020
@Haplois Haplois changed the title Updating TestPlarform version FQN work Nov 2, 2020
@Haplois Haplois requested review from peterwald and nohwnd Nov 2, 2020
Added support for `ManagedType` and `ManagedMethod` into various classes. Also centralized TestPlarform version, and some refactoring.
@Haplois Haplois force-pushed the Haplois:ns10 branch from 4a65248 to df1e301 Nov 2, 2020
@Haplois Haplois force-pushed the Haplois:ns10 branch 2 times, most recently from 78ae14f to e5ead2f Nov 2, 2020
@Haplois Haplois force-pushed the Haplois:ns10 branch from e5ead2f to 1fac6d9 Nov 3, 2020
@microsoft microsoft deleted a comment from azure-pipelines bot Nov 3, 2020
@microsoft microsoft deleted a comment from azure-pipelines bot Nov 3, 2020
@microsoft microsoft deleted a comment from azure-pipelines bot Nov 3, 2020
@microsoft microsoft deleted a comment from azure-pipelines bot Nov 3, 2020
@microsoft microsoft deleted a comment from azure-pipelines bot Nov 3, 2020
@peterwald
Copy link
Member

@peterwald peterwald commented Nov 3, 2020

LGTM with a few minor comments. It's encouraging to see that the addition of the two properties seems to be relatively simple. Of course, we still need to add support for parameter/argument sets.

@Haplois Haplois force-pushed the Haplois:ns10 branch 4 times, most recently from 5419577 to bb70540 Nov 5, 2020
@Haplois Haplois force-pushed the Haplois:ns10 branch from bb70540 to 423f681 Nov 7, 2020
@Haplois Haplois force-pushed the Haplois:ns10 branch from 9dc420d to 6cb2939 Nov 16, 2020
@Haplois Haplois force-pushed the Haplois:ns10 branch from 6cb2939 to ecd7dae Nov 16, 2020
@Haplois Haplois force-pushed the Haplois:ns10 branch 3 times, most recently from 49090bc to e60d779 Nov 19, 2020
@Haplois Haplois force-pushed the Haplois:ns10 branch from e60d779 to 3767cb5 Nov 24, 2020
@Haplois Haplois marked this pull request as ready for review Nov 24, 2020
@Haplois Haplois self-assigned this Nov 24, 2020
@Haplois Haplois requested a review from peterwald Nov 24, 2020
Copy link
Member

@nohwnd nohwnd left a comment

Looks mostly good, I would review if #if NETCOREAPP1_1 || NETCOREAPP2_1 can be replaced witch check for just netcoreapp to help us in the future if we need to multitarget this further.

function Sync-PackageVersions {
$versionsFile = "$PSScriptRoot\build\TestFx.Versions.targets"

$versionsRegex = '(?mi)<(TestPlatformVersion.*?)>(.*?)<\/TestPlatformVersion>'

This comment has been minimized.

@nohwnd

nohwnd Nov 24, 2020
Member

nit: Not sure what the ?mi option would do here. It is definitely case insensitive by default ( -split and -isplit is case insensitive, -csplit is case sensitive). And you are passing the whole file as one string (you used -Raw). If you have a strong reason I would like to know to learn.

This comment has been minimized.

@Haplois

Haplois Nov 24, 2020
Author Member

In some (like test/E2ETests/Automation.CLI/packages.config) files we reference more than one package, this is to catch all references and update those.

This comment has been minimized.

@nohwnd

nohwnd Nov 24, 2020
Member

Looks like that is the default behavior of -replace:

PS > Get-Content ~/Desktop/abc.txt

abc
abc abcabc
abc

PS > (Get-Content ~/Desktop/abc.txt -Raw) -replace "abc", "ggg"

ggg       
ggg gggggg
ggg    

This comment has been minimized.

@Haplois

Haplois Nov 24, 2020
Author Member

I'll have another PR after this and move to use PackageReference instead of "NuGet.config" files. With that PR, I'll remove this logic too.

scripts/Build.ps1 Outdated Show resolved Hide resolved
scripts/common.lib.ps1 Show resolved Hide resolved
@nohwnd
nohwnd approved these changes Nov 24, 2020
Haplois added 2 commits Nov 24, 2020
@Haplois Haplois merged commit 76f0f89 into microsoft:master Nov 24, 2020
2 checks passed
2 checks passed
TestFx.PR Build #20201124.6 succeeded
Details
license/cla All CLA requirements met.
Details
@Haplois Haplois deleted the Haplois:ns10 branch Nov 24, 2020
@Haplois Haplois changed the title FQN work Added support for ManagedType and ManagedClass Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.