-
Notifications
You must be signed in to change notification settings - Fork 402
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
base: main
Are you sure you want to change the base?
Device test runner #1444
Conversation
cc: @mattleibow just in case you have something to add (: |
b8415ae
to
f818c9d
Compare
f818c9d
to
5513c8e
Compare
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<MauiXaml Update="Tests\UITests\StatusBarTestPage.xaml"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed
....Maui.DeviceTests/CommunityToolkit.Maui.DeviceTests/CommunityToolkit.Maui.DeviceTests.csproj
Outdated
Show resolved
Hide resolved
public class BehaviorTest | ||
{ | ||
[Fact] | ||
public void SuccessfulTest() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed
There was a problem hiding this comment.
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
src/CommunityToolkit.Maui.DeviceTests/CommunityToolkit.Maui.DeviceTests/Tests/BehaviorTest.cs
Outdated
Show resolved
Hide resolved
* 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
@pictos can we merge this PR as it is (with comments fixes)? |
This saves time by not attempting to re-build projects that were previously compiled when the Unit Tests ran. It also ensures that the project build step will fail alerting us immediately to the root cause of the CI pipeline failure.
It looks like it is forcing us to upgrade to Xcode 16 and iOS 18? Is this supported via Azure Pipelines? |
Yup! You need to do two things to add iOS 18 support to the library:
|
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.