wails icon indicating copy to clipboard operation
wails copied to clipboard

#1057 expose ZoomFactor get/set and add the respective windows only options

Open pierrejoye opened this issue 3 years ago • 6 comments

As discussed in the ticket. Here is a 1st version.

Do we have tests in general? I can add the relevant ones if any needed here (while not sure how to test the underlying COM APIs calls :)

pierrejoye avatar Jun 18 '22 05:06 pierrejoye

Thanks for this! Tests are super hard and time consuming, but if you'd like to get the ball rolling I'm open to that! What did you have in mind?

leaanthony avatar Jun 18 '22 05:06 leaanthony

Thanks for this! Tests are super hard and time consuming, but if you'd like to get the ball rolling I'm open to that! What did you have in mind?

The easy part are the wails specific parts, generations etc. As they are almost all self contained. Unit tests for each functions are relatively straightforward for most. If not, we may need to refactor some to allow easy testing of each specific function (ie. if a function does too many things, can be splitted in separate ones without changing the public APIs).

For the integration tests (all OSes system APIs, be webviews or other), kind of tricky. Maybe writing fake functions for the C APIs. For COM, not sure, writing a fake COM sounds cumbersome. I need to think about that part :)

pierrejoye avatar Jun 18 '22 05:06 pierrejoye

Thanks for the great feedback and suggestion :) I will see which part I can add tests in the next couple of days.

pierrejoye avatar Jun 18 '22 16:06 pierrejoye

Any updates on this @pierrejoye? I wouldn't want this blocked because of trying to work out the hard problem of testing 👍 Let me know how we can move it forward 👍

leaanthony avatar Jul 03 '22 22:07 leaanthony

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 07:08 stale[bot]

@pierrejoye any news on this?

leaanthony avatar Aug 13 '22 08:08 leaanthony

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 02:09 stale[bot]

hello :)

sorry for the late reply, I did not have the time to work on the test.

that patch is used in prod here since I made the PR though :)

On Sat, Aug 13, 2022, 3:16 PM Lea Anthony @.***> wrote:

@pierrejoye https://github.com/pierrejoye any news on this?

— Reply to this email directly, view it on GitHub https://github.com/wailsapp/wails/pull/1463#issuecomment-1213983305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACE6KDHF3YQ6Z2C2EDNYMDVY5KVXANCNFSM5ZEFPFZQ . You are receiving this because you were mentioned.Message ID: @.***>

pierrejoye avatar Oct 11 '22 07:10 pierrejoye

Hey there 👋 We'll look at this soon 👍

leaanthony avatar Oct 11 '22 10:10 leaanthony