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

[uitests] Work for get appium uitests with CI #14488

Merged
merged 161 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from 146 commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
0860d45
More stuff with query
rmarinho Jan 5, 2023
f81436b
Update to Appium 2.0
rmarinho Jan 6, 2023
2f10650
Cleanup
rmarinho Jan 6, 2023
dd4508f
Fix tests
rmarinho Jan 6, 2023
af84aed
Add mac tests
rmarinho Jan 6, 2023
811d02c
Multiple testcase
rmarinho Jan 6, 2023
923371e
Fixes for windows
rmarinho Jan 9, 2023
36f1318
Deploy as unpackaged app
rmarinho Jan 10, 2023
b85f2ce
Fixes for run UITests on windows
rmarinho Jan 10, 2023
602b7ad
Cleanup and move to TestUtils projects for Appium and Xamarin.UITest
rmarinho Jan 10, 2023
b2490a4
Fix references
rmarinho Jan 10, 2023
b54b6ee
Add to mac sln
rmarinho Jan 10, 2023
1a62b63
Fix sln
rmarinho Jan 11, 2023
af48c02
Add uitest yaml
rmarinho Jan 11, 2023
e405310
Merge branch 'appium' of https://github.com/dotnet/maui into appium
rmarinho Jan 11, 2023
a93fef6
Fix sln
rmarinho Jan 11, 2023
f8241fd
Update yml
rmarinho Jan 11, 2023
2697397
more fixes
rmarinho Jan 11, 2023
d1039c8
again powershell
rmarinho Jan 11, 2023
a378b31
fix ident
rmarinho Jan 11, 2023
6f9e60f
Add path and try call cake
rmarinho Jan 11, 2023
c4924bf
Fix
rmarinho Jan 12, 2023
a4140ae
Start background
rmarinho Jan 12, 2023
1b97bb3
Start appium on the background
rmarinho Jan 16, 2023
39345f4
Just run android for now
rmarinho Jan 16, 2023
d0a4dec
try install app
rmarinho Jan 16, 2023
f8cb5bf
try again
rmarinho Jan 16, 2023
bb17f86
if it fails continue
rmarinho Jan 16, 2023
3eb1fc7
fix paths
rmarinho Jan 16, 2023
d17eeac
appium
rmarinho Jan 16, 2023
4019545
try again
rmarinho Jan 16, 2023
adce515
try again
rmarinho Jan 16, 2023
ff45b6b
fix
rmarinho Jan 16, 2023
a34c1fb
again
rmarinho Jan 16, 2023
97bba5d
try again
rmarinho Jan 16, 2023
cda90a6
location of samples
rmarinho Jan 16, 2023
614fc6e
build samples
rmarinho Jan 16, 2023
cf2846c
do not skip xcode
rmarinho Jan 16, 2023
8e4035e
more debug info
rmarinho Jan 16, 2023
0915673
Publish test results
rmarinho Jan 16, 2023
b4b8d2e
nUnit tests for now
rmarinho Jan 16, 2023
74f7afd
try any file
rmarinho Jan 16, 2023
8242d72
no retry
rmarinho Jan 16, 2023
acd7253
try vstest
rmarinho Jan 16, 2023
7e805a7
FIX PATH
rmarinho Jan 17, 2023
262f181
Merge branch 'appium' of https://github.com/dotnet/maui into appium
rmarinho Jan 17, 2023
8d64e64
install more drivers
rmarinho Jan 17, 2023
bacba2d
usenuget when building samples
rmarinho Jan 17, 2023
b5785d3
Merge branch 'appium' of https://github.com/dotnet/maui into appium
rmarinho Jan 17, 2023
acc4c11
Move to helpers
rmarinho Jan 17, 2023
daed970
Try run iOS tests
rmarinho Jan 17, 2023
ddb6d08
try build both
rmarinho Jan 17, 2023
cf562a3
Add ALLTests
rmarinho Jan 17, 2023
018f92d
Android folder
rmarinho Jan 17, 2023
b7daa11
fixes
rmarinho Jan 17, 2023
4b1d5ef
try again
rmarinho Jan 17, 2023
dc51342
Fix path
rmarinho Jan 17, 2023
959e969
Cleanup android cake
rmarinho Jan 17, 2023
f115349
cleanup iOS cake
rmarinho Jan 17, 2023
98fa3c8
add mac cake
rmarinho Jan 17, 2023
6d4cde8
fix version
rmarinho Jan 17, 2023
df0b4ca
try again
rmarinho Jan 17, 2023
10fc9b0
try again
rmarinho Jan 17, 2023
63982ae
upDATE TOOLS
rmarinho Jan 18, 2023
3b07ebc
try again
rmarinho Jan 18, 2023
b54fada
fix again
rmarinho Jan 18, 2023
55638c2
again
rmarinho Jan 18, 2023
7f1e4fd
again
rmarinho Jan 18, 2023
87fb655
again
rmarinho Jan 18, 2023
ae4d546
rollback xharness
rmarinho Jan 18, 2023
e8262b4
increase timeout
rmarinho Jan 18, 2023
e7ba43b
run with dotnet path
rmarinho Jan 18, 2023
7d1ef5e
Fix dir
rmarinho Jan 19, 2023
1e19121
Try again
rmarinho Jan 19, 2023
cf318d3
fix
rmarinho Jan 19, 2023
94ca3d8
Fix
rmarinho Jan 19, 2023
647ebd0
Merge branch 'main' into appium
rmarinho Jan 20, 2023
699c63f
build and then run tests
rmarinho Jan 20, 2023
bf261ee
fix platformVersion passed to APPIUM
rmarinho Jan 20, 2023
dfa025d
Don t do verbosity
rmarinho Jan 23, 2023
6ab64c2
Log for appium
rmarinho Jan 23, 2023
1370005
Try 16.2
rmarinho Jan 23, 2023
210af87
Add platform to appium logs
rmarinho Jan 23, 2023
97db3f9
Fix
rmarinho Jan 23, 2023
3a522ce
Start test server
rmarinho Jan 24, 2023
199b2f8
Wait for server to start
rmarinho Jan 24, 2023
bbe921b
Fix typo
rmarinho Jan 24, 2023
7aa8e23
Add windows cake
rmarinho Jan 24, 2023
f0dead6
Set uitests windows yaml
rmarinho Jan 24, 2023
e2de95b
provision on macos only
rmarinho Jan 24, 2023
31d8095
Fix path for app windows
rmarinho Jan 24, 2023
5af4127
Rename winui
rmarinho Jan 24, 2023
65a6e6b
Try again
rmarinho Jan 24, 2023
7e19eef
Make sure to stop and dispose the server
rmarinho Jan 24, 2023
ece1ff5
fix template
rmarinho Jan 24, 2023
42d9ece
Install windows driver too
rmarinho Jan 24, 2023
6a7f793
Better appium install drivers
rmarinho Jan 24, 2023
ea82770
specify device
rmarinho Jan 24, 2023
4705da8
Fix binlog android
rmarinho Jan 24, 2023
ccd210b
Run device tests in release
rmarinho Jan 24, 2023
024d027
Try no path
rmarinho Jan 24, 2023
87de906
Try with debug configuration
rmarinho Jan 24, 2023
70fb82f
try build samples just for that platform
rmarinho Jan 24, 2023
a7321bb
Release
rmarinho Jan 24, 2023
a792631
rename to match platform
rmarinho Jan 25, 2023
d4e4f3c
try cleanup
rmarinho Jan 25, 2023
1144ce1
Add mac uitests
rmarinho Jan 25, 2023
39673a4
Build only for catalyst
rmarinho Jan 25, 2023
4f7eaeb
Add information
rmarinho Jan 25, 2023
3584ac9
Version mac
rmarinho Jan 25, 2023
5237859
Fix folder path
rmarinho Jan 25, 2023
88a7f70
Try build and run windows tests
rmarinho Jan 25, 2023
7699bfc
more stuff on install script
rmarinho Jan 26, 2023
f9aee5b
Add retry for ios
rmarinho Jan 26, 2023
2239e2f
run always on xamarin pool
rmarinho Jan 26, 2023
0c07f55
Fix windows
rmarinho Jan 27, 2023
ef53a37
Allow to pass configuration to catalyst
rmarinho Feb 1, 2023
2aeadcd
Add bindir info
rmarinho Feb 1, 2023
9646f5a
Try fix windows build
rmarinho Feb 2, 2023
2052879
Try set env variables before
rmarinho Feb 2, 2023
cb5a070
[Sample] Clean fields when tapping login button
rmarinho Feb 8, 2023
3747ff2
Take screenshot before querying text element
sbanni Apr 3, 2023
01268bd
Enable automationmode-without-authentication
sbanni Apr 4, 2023
332fbe1
Try using action instead
sbanni Apr 5, 2023
38eebae
Use same machine pool as ios/android for mac
sbanni Apr 5, 2023
ef447e6
Change entry to not get autocorrect pop-up and add delay before click
sbanni Apr 6, 2023
2083a15
Disable keyboard completion for catalyst runs
sbanni Apr 7, 2023
f8ee30d
Merge branch 'main' into appium
rmarinho May 2, 2023
f6c562b
Auto-format source code
May 2, 2023
b469a98
Update sln
rmarinho May 2, 2023
2af7f0c
Fix csproj
rmarinho May 2, 2023
de50dd7
Add Sample UITests
rmarinho May 2, 2023
b5b8916
Fix yaml
rmarinho May 2, 2023
605bc0a
Use the new app uitest sandbox project
rmarinho May 2, 2023
972e5cb
Remove old code
rmarinho May 2, 2023
84c323d
Cleanup
rmarinho May 2, 2023
2eb25b5
Fix Android manifest
rmarinho May 2, 2023
639e2ce
Fix build for tizen
rmarinho May 2, 2023
922343a
Rename projects
rmarinho May 2, 2023
c3e3af7
Some more renames
rmarinho May 2, 2023
5267046
Fix ios for PR's
rmarinho May 2, 2023
42dadff
Update MainPageTests.cs
rmarinho May 2, 2023
944480b
Add to mac slnf
rmarinho May 2, 2023
a895f78
Try more stuff for the mac
rmarinho May 3, 2023
fc33ccd
Try run before
rmarinho May 3, 2023
390f40a
don t set automation mode
rmarinho May 3, 2023
ce04249
Try Xcode select and move to ventura
rmarinho May 3, 2023
05244fb
Fix script
rmarinho May 3, 2023
98643e9
Dont xcode select
rmarinho May 3, 2023
07c05f7
Bool and not string
rmarinho May 3, 2023
3b310da
try old appium
rmarinho May 3, 2023
34d0aaa
Fix version
rmarinho May 3, 2023
b5e108f
Can we skip provisioning
rmarinho May 3, 2023
17f9a74
We can't skip provisioning
rmarinho May 3, 2023
15b7906
Dont provision on windows
rmarinho May 3, 2023
d0d9a19
Update sln and packages
rmarinho May 3, 2023
e0105a1
Update node
rmarinho May 16, 2023
277e94f
Configure the windows path to the exe
rmarinho May 16, 2023
0aee48f
Auto-format source code
May 16, 2023
318c3b5
Merge branch 'main' into appium
rmarinho May 16, 2023
85f511f
Ignore test for now
rmarinho May 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Microsoft.Maui-dev.sln
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controls.Xaml.UnitTests.Int
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controls.Xaml.UnitTests.InternalsHiddenAssembly", "src\Controls\tests\Xaml.UnitTests.InternalsHiddenAssembly\Controls.Xaml.UnitTests.InternalsHiddenAssembly.csproj", "{FB39FACE-BAF2-4F97-A249-E45BA63D77FE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controls.AppiumTests", "src\Controls\tests\UITests\Controls.AppiumTests.csproj", "{2A0CB35C-ED05-4FCB-91BC-21B288B749B1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestUtils.Appium", "src\TestUtils\src\TestUtils.Appium\TestUtils.Appium.csproj", "{FABB4FE3-AD90-479E-B7F1-BEF110181196}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestUtils.Appium.UITests", "src\TestUtils\src\TestUtils.Appium.UITests\TestUtils.Appium.UITests.csproj", "{E06CEFD4-237C-49F0-BE0F-C5F80AD8F64C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controls.Sample.UITests", "src\Controls\samples\Controls.Sample.UITests\Controls.Sample.UITests.csproj", "{07C26A25-08C2-4C52-9574-1C33EC8E7919}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -519,6 +527,23 @@ Global
{FB39FACE-BAF2-4F97-A249-E45BA63D77FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FB39FACE-BAF2-4F97-A249-E45BA63D77FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FB39FACE-BAF2-4F97-A249-E45BA63D77FE}.Release|Any CPU.Build.0 = Release|Any CPU
{2A0CB35C-ED05-4FCB-91BC-21B288B749B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A0CB35C-ED05-4FCB-91BC-21B288B749B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2A0CB35C-ED05-4FCB-91BC-21B288B749B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2A0CB35C-ED05-4FCB-91BC-21B288B749B1}.Release|Any CPU.Build.0 = Release|Any CPU
{FABB4FE3-AD90-479E-B7F1-BEF110181196}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FABB4FE3-AD90-479E-B7F1-BEF110181196}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FABB4FE3-AD90-479E-B7F1-BEF110181196}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FABB4FE3-AD90-479E-B7F1-BEF110181196}.Release|Any CPU.Build.0 = Release|Any CPU
{E06CEFD4-237C-49F0-BE0F-C5F80AD8F64C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E06CEFD4-237C-49F0-BE0F-C5F80AD8F64C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E06CEFD4-237C-49F0-BE0F-C5F80AD8F64C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E06CEFD4-237C-49F0-BE0F-C5F80AD8F64C}.Release|Any CPU.Build.0 = Release|Any CPU
{07C26A25-08C2-4C52-9574-1C33EC8E7919}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07C26A25-08C2-4C52-9574-1C33EC8E7919}.Debug|Any CPU.Build.0 = Debug|Any CPU
{07C26A25-08C2-4C52-9574-1C33EC8E7919}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{07C26A25-08C2-4C52-9574-1C33EC8E7919}.Release|Any CPU.ActiveCfg = Release|Any CPU
{07C26A25-08C2-4C52-9574-1C33EC8E7919}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -613,6 +638,10 @@ Global
{B5F38A9E-1949-4779-8739-D682B09E0CB3} = {25D0D27A-C5FE-443D-8B65-D6C987F4A80E}
{B5F38A9E-1949-4779-6666-D682B09E0CB3} = {25D0D27A-C5FE-443D-8B65-D6C987F4A80E}
{FB39FACE-BAF2-4F97-A249-E45BA63D77FE} = {25D0D27A-C5FE-443D-8B65-D6C987F4A80E}
{2A0CB35C-ED05-4FCB-91BC-21B288B749B1} = {25D0D27A-C5FE-443D-8B65-D6C987F4A80E}
{FABB4FE3-AD90-479E-B7F1-BEF110181196} = {7AC28763-9C68-4BF9-A1BA-25CBFFD2D15C}
{E06CEFD4-237C-49F0-BE0F-C5F80AD8F64C} = {7AC28763-9C68-4BF9-A1BA-25CBFFD2D15C}
{07C26A25-08C2-4C52-9574-1C33EC8E7919} = {E1082E26-D700-4127-9329-66D673FD2D55}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0B8ABEAD-D2B5-4370-A187-62B5ABE4EE50}
Expand Down
4 changes: 4 additions & 0 deletions Microsoft.Maui-mac.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"src\\Controls\\samples\\Controls.Sample.Profiling\\Maui.Controls.Sample.Profiling.csproj",
"src\\Controls\\samples\\Controls.Sample.Sandbox\\Maui.Controls.Sample.Sandbox.csproj",
"src\\Controls\\samples\\Controls.Sample\\Maui.Controls.Sample.csproj",
"src\\Controls\\samples\\Controls.Sample.UITests\\Controls.Sample.UITests.csproj",
"src\\Controls\\src\\Build.Tasks\\Controls.Build.Tasks.csproj",
"src\\Controls\\src\\Core.Design\\Controls.Core.Design.csproj",
"src\\Controls\\src\\Core\\Controls.Core.csproj",
Expand All @@ -21,6 +22,7 @@
"src\\Controls\\tests\\Core.UnitTests\\Controls.Core.UnitTests.csproj",
"src\\Controls\\tests\\CustomAttributes\\Controls.CustomAttributes.csproj",
"src\\Controls\\tests\\DeviceTests\\Controls.DeviceTests.csproj",
"src\\Controls\\tests\\UITests\\Controls.AppiumTests.csproj",
"src\\Controls\\tests\\Xaml.UnitTests.ExternalAssembly\\Controls.Xaml.UnitTests.ExternalAssembly.csproj",
"src\\Controls\\tests\\Xaml.UnitTests.InternalsVisibleAssembly\\Controls.Xaml.UnitTests.InternalsVisibleAssembly.csproj",
"src\\Controls\\tests\\Xaml.UnitTests.InternalsHiddenAssembly\\Controls.Xaml.UnitTests.InternalsHiddenAssembly.csproj",
Expand Down Expand Up @@ -48,6 +50,8 @@
"src\\TestUtils\\src\\DeviceTests.Runners\\TestUtils.DeviceTests.Runners.csproj",
"src\\TestUtils\\src\\DeviceTests\\TestUtils.DeviceTests.csproj",
"src\\TestUtils\\src\\TestUtils\\TestUtils.csproj",
"src\\TestUtils\\src\\TestUtils.Appium.UITests\\TestUtils.Appium.UITests.csproj",
"src\\TestUtils\\src\\TestUtils.Appium\\TestUtils.Appium.csproj",
"src\\Workload\\Microsoft.Maui.Sdk\\Microsoft.Maui.Sdk.csproj",
"src\\Workload\\Microsoft.NET.Sdk.Maui\\Microsoft.NET.Sdk.Maui.csproj"
]
Expand Down
4 changes: 4 additions & 0 deletions Microsoft.Maui-windows.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"src\\Controls\\Maps\\src\\Controls.Maps.csproj",
"src\\Controls\\samples\\Controls.Sample.Profiling\\Maui.Controls.Sample.Profiling.csproj",
"src\\Controls\\samples\\Controls.Sample.Sandbox\\Maui.Controls.Sample.Sandbox.csproj",
"src\\Controls\\samples\\Controls.Sample.UITests\\Controls.Sample.UITests.csproj",
"src\\Controls\\samples\\Controls.Sample\\Maui.Controls.Sample.csproj",
"src\\Controls\\src\\Build.Tasks\\Controls.Build.Tasks.csproj",
"src\\Controls\\src\\Core.Design\\Controls.Core.Design.csproj",
Expand All @@ -26,6 +27,7 @@
"src\\Controls\\tests\\Core.UnitTests\\Controls.Core.UnitTests.csproj",
"src\\Controls\\tests\\CustomAttributes\\Controls.CustomAttributes.csproj",
"src\\Controls\\tests\\DeviceTests\\Controls.DeviceTests.csproj",
"src\\Controls\\tests\\UITests\\Controls.AppiumTests.csproj",
"src\\Controls\\tests\\Xaml.UnitTests.ExternalAssembly\\Controls.Xaml.UnitTests.ExternalAssembly.csproj",
"src\\Controls\\tests\\Xaml.UnitTests.InternalsHiddenAssembly\\Controls.Xaml.UnitTests.InternalsHiddenAssembly.csproj",
"src\\Controls\\tests\\Xaml.UnitTests.InternalsVisibleAssembly\\Controls.Xaml.UnitTests.InternalsVisibleAssembly.csproj",
Expand Down Expand Up @@ -64,6 +66,8 @@
"src\\TestUtils\\src\\DeviceTests.Runners.SourceGen\\TestUtils.DeviceTests.Runners.SourceGen.csproj",
"src\\TestUtils\\src\\DeviceTests.Runners\\TestUtils.DeviceTests.Runners.csproj",
"src\\TestUtils\\src\\DeviceTests\\TestUtils.DeviceTests.csproj",
"src\\TestUtils\\src\\TestUtils.Appium.UITests\\TestUtils.Appium.UITests.csproj",
"src\\TestUtils\\src\\TestUtils.Appium\\TestUtils.Appium.csproj",
"src\\TestUtils\\src\\TestUtils\\TestUtils.csproj",
"src\\Workload\\Microsoft.Maui.Sdk\\Microsoft.Maui.Sdk.csproj",
"src\\Workload\\Microsoft.NET.Sdk.Maui\\Microsoft.NET.Sdk.Maui.csproj"
Expand Down
3 changes: 2 additions & 1 deletion Microsoft.Maui.Samples.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"projects": [
"src\\BlazorWebView\\samples\\MauiRazorClassLibrarySample\\MauiRazorClassLibrarySample.csproj",
"src\\Controls\\samples\\Controls.Sample.Sandbox\\Maui.Controls.Sample.Sandbox.csproj",
"src\\Controls\\samples\\Controls.Sample.UITests\\Controls.Sample.UITests.csproj",
"src\\Controls\\samples\\Controls.Sample\\Maui.Controls.Sample.csproj"
]
}
}
}
28 changes: 28 additions & 0 deletions Microsoft.Maui.sln
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.DeviceTests.Shared", "
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Graphics.DeviceTests", "src\Graphics\tests\DeviceTests\Graphics.DeviceTests.csproj", "{34969E49-FA6E-41BB-9813-5689BB14021E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controls.AppiumTests", "src\Controls\tests\UITests\Controls.AppiumTests.csproj", "{A23B108A-AB56-4692-B9DA-0E23602E3955}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestUtils.Appium", "src\TestUtils\src\TestUtils.Appium\TestUtils.Appium.csproj", "{EDADE060-6B61-4006-BB7D-CB7710F08E87}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestUtils.Appium.UITests", "src\TestUtils\src\TestUtils.Appium.UITests\TestUtils.Appium.UITests.csproj", "{0930F067-A388-4C9C-A249-653B74625A4E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Compatibility.Core.UnitTests", "src\Compatibility\Core\tests\Compatibility.UnitTests\Compatibility.Core.UnitTests.csproj", "{13A1AFD2-78D3-4463-9977-C8B642BCE2E2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controls.Xaml.UnitTests.ExternalAssembly", "src\Controls\tests\Xaml.UnitTests.ExternalAssembly\Controls.Xaml.UnitTests.ExternalAssembly.csproj", "{F2ADA552-6328-4B2D-8D48-FCDD32C4AF60}"
Expand All @@ -255,6 +261,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Maui.IntegrationT
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controls.Xaml.UnitTests.InternalsHiddenAssembly", "src\Controls\tests\Xaml.UnitTests.InternalsHiddenAssembly\Controls.Xaml.UnitTests.InternalsHiddenAssembly.csproj", "{FB39FACE-BAF2-4F97-A249-E45BA63D77FE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controls.Sample.UITests", "src\Controls\samples\Controls.Sample.UITests\Controls.Sample.UITests.csproj", "{F39F75DC-671B-4649-8005-1929797B3217}"
rmarinho marked this conversation as resolved.
Show resolved Hide resolved
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -619,6 +627,18 @@ Global
{34969E49-FA6E-41BB-9813-5689BB14021E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34969E49-FA6E-41BB-9813-5689BB14021E}.Release|Any CPU.Build.0 = Release|Any CPU
{34969E49-FA6E-41BB-9813-5689BB14021E}.Release|Any CPU.Deploy.0 = Release|Any CPU
{A23B108A-AB56-4692-B9DA-0E23602E3955}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A23B108A-AB56-4692-B9DA-0E23602E3955}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A23B108A-AB56-4692-B9DA-0E23602E3955}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A23B108A-AB56-4692-B9DA-0E23602E3955}.Release|Any CPU.Build.0 = Release|Any CPU
{EDADE060-6B61-4006-BB7D-CB7710F08E87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EDADE060-6B61-4006-BB7D-CB7710F08E87}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EDADE060-6B61-4006-BB7D-CB7710F08E87}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EDADE060-6B61-4006-BB7D-CB7710F08E87}.Release|Any CPU.Build.0 = Release|Any CPU
{0930F067-A388-4C9C-A249-653B74625A4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0930F067-A388-4C9C-A249-653B74625A4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0930F067-A388-4C9C-A249-653B74625A4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0930F067-A388-4C9C-A249-653B74625A4E}.Release|Any CPU.Build.0 = Release|Any CPU
{13A1AFD2-78D3-4463-9977-C8B642BCE2E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13A1AFD2-78D3-4463-9977-C8B642BCE2E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13A1AFD2-78D3-4463-9977-C8B642BCE2E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -639,6 +659,10 @@ Global
{FB39FACE-BAF2-4F97-A249-E45BA63D77FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FB39FACE-BAF2-4F97-A249-E45BA63D77FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FB39FACE-BAF2-4F97-A249-E45BA63D77FE}.Release|Any CPU.Build.0 = Release|Any CPU
{F39F75DC-671B-4649-8005-1929797B3217}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F39F75DC-671B-4649-8005-1929797B3217}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F39F75DC-671B-4649-8005-1929797B3217}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F39F75DC-671B-4649-8005-1929797B3217}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -752,11 +776,15 @@ Global
{4A6930AE-B67C-4D29-B1A8-ED9EB7F923A7} = {50C758FE-4E10-409A-94F5-A75480960864}
{66CC98E3-6A1A-4C44-A23C-B575E82106EC} = {C564DDD6-DE79-45CD-88EA-3F690481572A}
{34969E49-FA6E-41BB-9813-5689BB14021E} = {936C47A9-A7EA-4FBD-8733-CED1D4100E69}
{A23B108A-AB56-4692-B9DA-0E23602E3955} = {E1082E26-D700-4127-9329-66D673FD2D55}
{EDADE060-6B61-4006-BB7D-CB7710F08E87} = {7AC28763-9C68-4BF9-A1BA-25CBFFD2D15C}
{0930F067-A388-4C9C-A249-653B74625A4E} = {7AC28763-9C68-4BF9-A1BA-25CBFFD2D15C}
{13A1AFD2-78D3-4463-9977-C8B642BCE2E2} = {85EBD2BA-EA5A-4B1F-AF16-81FBD58579DF}
{F2ADA552-6328-4B2D-8D48-FCDD32C4AF60} = {25D0D27A-C5FE-443D-8B65-D6C987F4A80E}
{B5F38A9E-1949-4779-6666-D682B09E0CB3} = {25D0D27A-C5FE-443D-8B65-D6C987F4A80E}
{1C899C94-8744-4E2A-8E23-1660393236FD} = {7AC28763-9C68-4BF9-A1BA-25CBFFD2D15C}
{FB39FACE-BAF2-4F97-A249-E45BA63D77FE} = {25D0D27A-C5FE-443D-8B65-D6C987F4A80E}
{F39F75DC-671B-4649-8005-1929797B3217} = {E1082E26-D700-4127-9329-66D673FD2D55}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0B8ABEAD-D2B5-4370-A187-62B5ABE4EE50}
Expand Down
17 changes: 12 additions & 5 deletions eng/cake/dotnet.cake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ string MSBuildExe = Argument("msbuild", EnvironmentVariable("MSBUILD_EXE", ""));
string nugetSource = Argument("nugetsource", "");

string TestTFM = Argument("testtfm", "");
var useNuget = Argument("usenuget", true);
if (TestTFM == "default")
TestTFM = "";

Expand Down Expand Up @@ -143,11 +144,17 @@ Task("dotnet-samples")
{
var tempDir = PrepareSeparateBuildContext("samplesTest");

RunMSBuildWithDotNet("./Microsoft.Maui.Samples.slnf", new Dictionary<string, string> {
["UseWorkload"] = "true",
// ["GenerateAppxPackageOnBuild"] = "true",
["RestoreConfigFile"] = tempDir.CombineWithFilePath("NuGet.config").FullPath,
}, binlogPrefix: "sample-");
var properties = new Dictionary<string, string>();

if(useNuget)
rmarinho marked this conversation as resolved.
Show resolved Hide resolved
{
properties = new Dictionary<string, string> {
["UseWorkload"] = "true",
// ["GenerateAppxPackageOnBuild"] = "true",
["RestoreConfigFile"] = tempDir.CombineWithFilePath("NuGet.config").FullPath,
};
}
RunMSBuildWithDotNet("./Microsoft.Maui.Samples.slnf", properties, binlogPrefix: "sample-");
});

Task("dotnet-samples-test")
Expand Down
37 changes: 37 additions & 0 deletions eng/cake/helpers.cake
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,40 @@ bool IsTarget(string target) =>

bool TargetStartsWith(string target) =>
Argument<string>("target", "Default").StartsWith(target, StringComparison.InvariantCultureIgnoreCase);

void RunTestWithLocalDotNet(string csproj, string configuration, string dotnetPath = null, Dictionary<string,string> argsExtra = null, bool noBuild = false)
{
var name = System.IO.Path.GetFileNameWithoutExtension(csproj);
var binlog = $"{GetLogDirectory()}/{name}-{configuration}.binlog";
var results = $"{name}-{configuration}.trx";

Information("Run Test binlog: {0}", binlog);

var settings = new DotNetCoreTestSettings
{
Configuration = configuration,
NoBuild = noBuild,
Logger = $"trx;LogFileName={results}",
ResultsDirectory = GetTestResultsDirectory(),
//Verbosity = Cake.Common.Tools.DotNetCore.DotNetCoreVerbosity.Diagnostic,
ArgumentCustomization = args =>
{
args.Append($"-bl:{binlog}");
if(argsExtra != null)
{
foreach(var prop in argsExtra)
{
args.Append($"/p:{prop.Key}={prop.Value}");
}
}
return args;
}
};

if(!string.IsNullOrEmpty(dotnetPath))
{
settings.ToolPath = dotnetPath;
}

DotNetCoreTest(csproj, settings);
}
Loading