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

How to correctly match the Forms mocked engine with the user's version? #5

Open
akamud opened this issue Jan 2, 2021 · 0 comments
Open
Projects
Milestone

Comments

@akamud
Copy link
Owner

akamud commented Jan 2, 2021

Today we reference Forms 5.0+ (mainly because of LocalValueEntry, introduced in 5.0). So when we run the unit tests, the app is running on our selected Forms version, and not on the user's app version.

If the user is referencing, for example, Forms 4.8, this could lead to some false positives or false negatives, since the Forms engine in the unit tests (5.0) is different from the App's original version (4.8).

I'm not sure how to handle this difference other than release a version matching every single stable Forms release. A few observations with this approach:

  • This could be done, but in order to support 5.0- we should stop using LocalValueEntry, which is not something I'm sure I want to do.
  • How could the versioning be made in order to make this clear for people referencing the library?
  • What would this mean for the Xamarin.Forms.Mock reference? How would it behave since it reference Forms too?
@akamud akamud added this to To do in Initial release Jan 2, 2021
@akamud akamud added this to the Release 1.0 milestone Jan 2, 2021
@akamud akamud changed the title Testar se funciona com versão Xamarin.Forms 5- How to correctly match the Forms mocked engine with the user's version? Jan 27, 2021
@akamud akamud removed this from To do in Initial release Feb 7, 2021
@akamud akamud added this to To do in Backlog Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Backlog
To do
Development

No branches or pull requests

1 participant