Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
14 changes: 13 additions & 1 deletion docs/DevelopmentTips.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ Check available queues at [helix.dot.net](https://helix.dot.net). The current co

### Running Device Tests Locally

The following commands assume you are on the root of the maui repository.

#### Step 1: Build Build Tasks
First, restore tools and build the required MSBuild tasks:

Expand All @@ -224,7 +226,7 @@ First, restore tools and build the required MSBuild tasks:
dotnet tool restore

# Build the Build tasks (required)
./build.sh -restore -build -configuration Release -projects './Microsoft.Maui.BuildTasks.slnf' /bl:BuildBuildTasks.binlog -warnAsError false
./build.sh -restore -build -configuration Release -projects $(PWD)/Microsoft.Maui.BuildTasks.slnf /bl:BuildBuildTasks.binlog -warnAsError false
```

#### Step 2: Build Device Tests
Expand All @@ -238,6 +240,16 @@ Build the device test projects:
#### Step 3: Send to Helix
Submit the tests to Helix for execution:

We need to ake some variables, more info about Helix can be read [here](https://github.com/dotnet/arcade/blob/main/src/Microsoft.DotNet.Helix/Sdk/Readme.md)
Comment thread
rmarinho marked this conversation as resolved.
Outdated

```bash
export BUILD_REASON=pr
export BUILD_REPOSITORY_NAME=maui
export BUILD_SOURCEBRANCH=main
export SYSTEM_TEAMPROJECT=dnceng
export SYSTEM_ACCESSTOKEN=''
```

```bash
# Send to Helix for Android
./eng/common/msbuild.sh ./eng/helix_xharness.proj /restore /p:TreatWarningsAsErrors=false /t:Test /p:TargetOS=android /bl:sendhelix.binlog -verbosity:diag
Expand Down
5 changes: 3 additions & 2 deletions eng/helix_xharness.proj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<HelixTargetQueues Condition="'$(TargetOS)' == 'ios'">osx.15.arm64.Open</HelixTargetQueues>
<HelixTargetQueues Condition="'$(TargetOS)' == 'maccatalyst'">osx.15.arm64.Open</HelixTargetQueues>
<HelixTargetQueues Condition="'$(TargetOS)' == 'android'">ubuntu.2204.amd64.android.33.open</HelixTargetQueues>
<TargetsAppleMobile Condition="'$(TargetOS)' == 'ios'">true</TargetsAppleMobile>
<Creator Condition="'$(HelixAccessToken)' == ''">maui</Creator>
<IncludeDotNetCli>true</IncludeDotNetCli>
<DotNetCliPackageType>sdk</DotNetCliPackageType>
Expand All @@ -24,9 +25,9 @@
<HelixBuild>t001</HelixBuild>
</PropertyGroup>

<PropertyGroup>
<PropertyGroup Condition="'$(SYSTEM_ACCESSTOKEN)' != ''">
<ScenariosDir>$(BUILD_SOURCESDIRECTORY)/artifacts/bin/</ScenariosDir>
<TargetsAppleMobile Condition="'$(TargetOS)' == 'ios'">true</TargetsAppleMobile>

</PropertyGroup>

<PropertyGroup>
Expand Down
Loading