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

Device test runner #1444

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Device test runner #1444

wants to merge 8 commits into from

Conversation

pictos
Copy link
Member

@pictos pictos commented Oct 4, 2023

This PR adds the Device test runner to our repo. It's WiP but it's nice to have some visibility of you all. It's working and if you want you can start to add tests. I added two tests to be a guide for you.

I'll need help of someone who knows yaml in order to create a step on our build to run these tests, I know that Maui does that so we can grab for them (?).

Right now these bits are in preview, and uses a private feed, I added a nuget.config file adding the source to the needed packages, I would say it's fine to use it since is the one that .NET MAUI uses and it the team is working in making this stable. Also, using it on our repo is a good way to help them provide early feedback.

@pictos pictos requested a review from a team October 4, 2023 23:49
@pictos
Copy link
Member Author

pictos commented Oct 4, 2023

cc: @mattleibow just in case you have something to add (:

</ItemGroup>

<ItemGroup>
<MauiXaml Update="Tests\UITests\StatusBarTestPage.xaml">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use NetVersion instead of net7.0

public class BehaviorTest
{
[Fact]
public void SuccessfulTest()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make it run on your CI first

@VladislavAntonyuk VladislavAntonyuk added the hacktoberfest-accepted A PR that has been approved during Hacktoberfest label Oct 5, 2023
VladislavAntonyuk and others added 2 commits October 5, 2023 20:21
* Run tests on Android

* fix path

* skip warnings

* install android sdk

* update nuget.config

* fix build

* use x86-x64 android emulator

* use android x64

* ios maccatalyst

* fix path

* fix ios build

* use xcode 14.3.1

* macos-13

* comment android

* Run only on Mac
@ghost ghost added stale The author has not responded in over 30 days help wanted This proposal has been approved and is ready to be implemented labels Nov 17, 2023
@VladislavAntonyuk
Copy link
Collaborator

@pictos can we merge this PR as it is (with comments fixes)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted A PR that has been approved during Hacktoberfest help wanted This proposal has been approved and is ready to be implemented stale The author has not responded in over 30 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants