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

Use timer to test multiple dialogs in Python and RUby #24

Open
KeyWorksRW opened this issue Aug 27, 2024 · 0 comments
Open

Use timer to test multiple dialogs in Python and RUby #24

KeyWorksRW opened this issue Aug 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@KeyWorksRW
Copy link
Owner

Description:

In C++, as long as the generated code compiles, it will probably run. However, with Python and Ruby, errors in code generation may not show up in a dialog until the dialog is created. That means coverage for multiple dialogs means that each of those dialogs must be opened.

A way to enable testing all dialogs would be to have a global boolean variable that dialogs would access in their OnInit handler. If the variable is true, then create a timer with a delay of a few seconds. The event handler for the timer should post an event to a cancel button and then shut down the timer. This should result in the dialog being closed. This would make it possible to have a test that turns on the global variable, and then creates and displays a series of dialogs. This would ensure that the syntax for all the dialogs is correct, since both Python and Ruby should stop of at the first error it encounter.

@KeyWorksRW KeyWorksRW added the enhancement New feature or request label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant