Skip to content

Commit 10ed4fc

Browse files
authored
Merge branch 'master' into u/vgromfeld/bindableAttributeRemoved
2 parents f5fa77e + 090e9f7 commit 10ed4fc

File tree

5 files changed

+43
-12
lines changed

5 files changed

+43
-12
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## Fixes #
2-
<!-- Link to relevant issue (for ex: #1234) which will automatically close the issue once the PR is merged -->
1+
## Fixes #<!-- Link to relevant issue (for ex: #1234) which will automatically close the issue once the PR is merged -->
2+
3+
<!-- Add a brief overview here of the feature/bug & fix -->
34

45
## PR Type
56
What kind of change does this PR introduce?
@@ -20,6 +21,7 @@ What kind of change does this PR introduce?
2021

2122

2223
## What is the new behavior?
24+
<!-- Describe how was this issue resolved or changed? -->
2325

2426

2527
## PR Checklist
@@ -32,9 +34,9 @@ Please check if your PR fulfills the following requirements:
3234
- [ ] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets)
3335
- [ ] Tests for the changes have been added (for bug fixes / features) (if applicable)
3436
- [ ] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
37+
- [ ] If new feature, add to [Feature List](https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/master/readme.md#-features)
3538
- [ ] Contains **NO** breaking changes
3639

37-
3840
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below.
3941
Please note that breaking changes are likely to be rejected -->
4042

.runsettings

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RunSettings>
3+
<MSTest>
4+
<MaxCpuCount>0</MaxCpuCount>
5+
<Parallelize>
6+
<Workers>0</Workers>
7+
<Scope>ClassLevel</Scope>
8+
</Parallelize>
9+
</MSTest>
10+
</RunSettings>

UnitTests/UnitTests.Notifications.NetCore/UnitTests.Notifications.NetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
1414
<PackageReference Include="MSTest.TestAdapter" Version="2.1.0" />
1515
<PackageReference Include="MSTest.TestFramework" Version="2.1.0" />
1616
</ItemGroup>

azure-pipelines.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,16 @@ steps:
2828
- task: UseDotNet@2
2929
inputs:
3030
packageType: 'sdk'
31-
version: '3.1.101'
32-
displayName: Use .NET Core sdk
31+
version: '2.1.202' # This SDK contains .Net Core 2.0.9, which we still need to run some of our .Net Core Tests
32+
performMultiLevelLookup: true
33+
displayName: Use .NET Core sdk 2
34+
35+
- task: UseDotNet@2
36+
inputs:
37+
packageType: 'sdk'
38+
version: '3.1.200'
39+
performMultiLevelLookup: true
40+
displayName: Use .NET Core sdk 3
3341

3442
- task: DotNetCoreCLI@2
3543
inputs:
@@ -50,7 +58,7 @@ steps:
5058
- task: PublishTestResults@2
5159
inputs:
5260
testResultsFormat: 'VSTest'
53-
testResultsFiles: '**/VsTestResults.xml'
61+
testResultsFiles: '**/VsTestResults*.trx'
5462
displayName: Publish Test Results
5563
condition: succeededOrFailed()
5664

build/build.cake

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,22 +265,33 @@ public string getMSTestAdapterPath(){
265265
Task("Test")
266266
.Description("Runs all Tests")
267267
.IsDependentOn("Build")
268-
.Does(() =>
268+
.Does(() =>
269269
{
270270
var vswhere = VSWhereLatest(new VSWhereLatestSettings
271271
{
272272
IncludePrerelease = false
273273
});
274-
274+
275275
var testSettings = new VSTestSettings
276276
{
277277
ToolPath = vswhere + "/Common7/IDE/CommonExtensions/Microsoft/TestWindow/vstest.console.exe",
278278
TestAdapterPath = getMSTestAdapterPath(),
279-
ArgumentCustomization = arg => arg.Append("/logger:trx;LogFileName=VsTestResults.xml /framework:FrameworkUap10"),
279+
ArgumentCustomization = arg => arg.Append("/logger:trx;LogFileName=VsTestResultsUwp.trx /framework:FrameworkUap10"),
280280
};
281281

282-
VSTest(baseDir + "/**/UnitTests.*.appxrecipe", testSettings);
283-
});
282+
VSTest(baseDir + "/**/Release/**/UnitTests.*.appxrecipe", testSettings);
283+
}).DoesForEach(GetFiles(baseDir + "/**/UnitTests.*.NetCore.csproj"), (file) =>
284+
{
285+
var testSettings = new DotNetCoreTestSettings
286+
{
287+
Configuration = "Release",
288+
NoBuild = true,
289+
Logger = "trx;LogFilePrefix=VsTestResults",
290+
Verbosity = DotNetCoreVerbosity.Normal,
291+
ArgumentCustomization = arg => arg.Append($"-s {baseDir}/.runsettings"),
292+
};
293+
DotNetCoreTest(file.FullPath, testSettings);
294+
}).DeferOnError();
284295

285296

286297

0 commit comments

Comments
 (0)