|
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFramework>net9.0</TargetFramework> |
| 5 | + <ImplicitUsings>enable</ImplicitUsings> |
| 6 | + <Nullable>enable</Nullable> |
| 7 | + <IsPackable>false</IsPackable> |
| 8 | + <IsTestProject>true</IsTestProject> |
| 9 | + <RootNamespace>DittoMauiTasksApp.UITests</RootNamespace> |
| 10 | + </PropertyGroup> |
| 11 | + |
| 12 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
| 13 | + <DefineConstants>$(DefineConstants);DEBUG</DefineConstants> |
| 14 | + </PropertyGroup> |
| 15 | + |
| 16 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> |
| 17 | + <DefineConstants>$(DefineConstants);RELEASE</DefineConstants> |
| 18 | + </PropertyGroup> |
| 19 | + |
| 20 | + <ItemGroup> |
| 21 | + <!-- Core testing packages --> |
| 22 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" /> |
| 23 | + <PackageReference Include="xunit" Version="2.9.2" /> |
| 24 | + <PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"> |
| 25 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 26 | + <PrivateAssets>all</PrivateAssets> |
| 27 | + </PackageReference> |
| 28 | + <PackageReference Include="coverlet.collector" Version="6.0.2"> |
| 29 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 30 | + <PrivateAssets>all</PrivateAssets> |
| 31 | + </PackageReference> |
| 32 | + |
| 33 | + <!-- MAUI Testing packages - with explicit version --> |
| 34 | + <PackageReference Include="Microsoft.Maui.Controls" Version="9.0.0" /> |
| 35 | + <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1" /> |
| 36 | + |
| 37 | + <!-- Appium WebDriver for cross-platform UI testing --> |
| 38 | + <PackageReference Include="Appium.WebDriver" Version="5.1.0" /> |
| 39 | + <PackageReference Include="Selenium.WebDriver" Version="4.27.0" /> |
| 40 | + <PackageReference Include="Selenium.Support" Version="4.27.0" /> |
| 41 | + |
| 42 | + <!-- BrowserStack specific packages --> |
| 43 | + <PackageReference Include="BrowserStack.Appium" Version="1.0.0" Condition="Exists('BrowserStack.Appium')" /> |
| 44 | + </ItemGroup> |
| 45 | + |
| 46 | + <ItemGroup> |
| 47 | + <!-- Test configuration files --> |
| 48 | + <None Include="appsettings.json" CopyToOutputDirectory="PreserveNewest" /> |
| 49 | + <None Include="browserstack.conf.json" CopyToOutputDirectory="PreserveNewest" /> |
| 50 | + </ItemGroup> |
| 51 | + |
| 52 | + <!-- BrowserStack specific build targets --> |
| 53 | + <Target Name="PrepareForBrowserStack" BeforeTargets="Build"> |
| 54 | + <Message Text="Preparing UI tests for BrowserStack execution" Importance="high" /> |
| 55 | + </Target> |
| 56 | + |
| 57 | + <!-- Test output settings --> |
| 58 | + <PropertyGroup> |
| 59 | + <TestResults>TestResults</TestResults> |
| 60 | + <VSTestResultsDirectory>$(TestResults)</VSTestResultsDirectory> |
| 61 | + </PropertyGroup> |
| 62 | + |
| 63 | +</Project> |
0 commit comments