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

Run unit tests on Android #1704

Closed
bruno-garcia opened this issue Jun 10, 2022 · 1 comment · Fixed by #1703
Closed

Run unit tests on Android #1704

bruno-garcia opened this issue Jun 10, 2022 · 1 comment · Fixed by #1703
Assignees
Labels
Android Feature New feature or request MAUI

Comments

@bruno-garcia
Copy link
Member

bruno-garcia commented Jun 10, 2022

The net6.0-android target isn't tested

From @mattjohnsonpint's comment in this PR: #1703 (comment)

Hi. I have another big PR with more MAUI stuff coming shortly that includes the deployment flag. But if you can find a way to get device tests going that would be amazing.

Currently, I can only write unit tests that run on net6.0 target, but there's a lot of code we'll want to tests that is only applicable under a specific device target, such as net6.0-android.

I think we want to do something like what the MAUI team is doing here: https://github.com/dotnet/maui/tree/main/src/TestUtils

Looks like others are trying this as well. See dotnet/maui#3552 (comment)

An attempt was done in the past, in this PR:

Ideally we'd use xharness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Feature New feature or request MAUI
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants